Referencing a C# project within a VB.NET project 
Author Message
 Referencing a C# project within a VB.NET project

Hi all,

I have a small program written in VB.NET in which I add references to two
other projects in the same solution.  One, called 'Data' is a VB.NET project
and the other, called 'TransactionDataAccess', is a C# project.  The
TransactionDataAccess project also has a reference to the Data project.  If
I reference the projects directly (by choosing them from the Projects tab in
the Add References form) and compile the whole solution, I get the following
errors:

D:\dev\Visual Studio Projects\tdavb\tdavb.vb(25): Reference required to
assembly 'Data' containing the type
'Liebermans.Common.Data.Constants.Transactions.RecordType'. Add one to your
project.

D:\dev\Visual Studio Projects\tdavb\tdavb.vb(73): Reference required to
assembly 'Data' containing the type
'Liebermans.Common.Data.TransactionData'. Add one to your project.

D:\dev\Visual Studio Projects\tdavb\tdavb.vb(25): Reference required to
assembly 'Data' containing the type
'Liebermans.Common.Data.TransactionData'. Add one to your project.

All three of these errors occurr when on lines of code in the main program
where I attempt to pass variables that have data types declared in the Data
(VB.NET) project to a method of a class declared in the
TransactionDataAccess (C#) project.  However, if I remove all the direct
project references, and add references to the compiled DLL files, everything
works fine.  Can anyone tell me why this happens and if there is a way to
get it to work when referencing the projects directly?

Thanks!

Zac Mouneimneh
Programmer/Developer
Lieberman's Gallery, LLP



Wed, 16 Nov 2005 02:47:32 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Help with problem using (EIStream) OCXs in VB.NET/C# project

2. using C# and VB.NET classes in the same project

3. VB.Net, C# in same project question

4. VB 6.0 project to VB.NET project ?

5. VB changes a Project Component to a hidden Project Reference

6. .NET project locking/loading DLL created by other .NET project

7. referencing VB.NET code from Project VBA

8. Convert VB.Net to C#, convert C# to VB.Net

9. Access 2000 adp project reference another A2000 adp project

10. Access 2000 adp project reference another A2000 adp project

11. VBA reference in project is bad - can't find project or library

12. Referencing Another Project In A Project Group

 

 
Powered by phpBB® Forum Software