PDA

View Full Version : Compile project holding reference to another


kina
04-04-2006, 03:32 PM
My project has two .vbproj (Data and Businnes)and one .sln file (MyProj)

I compiled Data and MyProj ok; Business is failing.
Business object has reference to Data.
It complains about all references to Data:
C:\netvss\Business\CBOClass.vb(165) : error BC30002: Type 'CDOSAgreement' is not defined.
CDOSAgreement is a class inside Data project.
I am using VS 2002; framework 1.1

kinook
04-04-2006, 04:20 PM
If you're using project references, you'll need to put Business and Data in the same solution and build that .sln file from the Make VS.NET action instead of the individual project files. See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/tdlg_ch3.asp for more details.