Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

missing assembly reference

Status
Not open for further replies.

dushkin

Programmer
Mar 28, 2002
90
US
hi. i have a solution with two project folders in it:

solution1 (namespace MyName)
---project1 (myctl.cs)
---project2 (myfile.cs)

project 1 has a control in it that is called from
project 2. the reference outside of the immediate
project gives me an error:

The type or namespace name 'myctl' does not exist in the class or namespace 'MyName' (are you missing an assembly reference?)

how do i include solution class files that are not
in the immediate project folder?

thanks in advance,
peter
 
In Visual Studio right, in the Solution Explorer window, right-click on the solution and then Add Reference. The .NET tab will be selected. Click the browse button and select the .dll in the bin folder of the application you wish to reference. You can then access the types within the referenced application.

Rob

Go placidly amidst the noise and haste, and remember what peace there may be in silence - Erhmann 1927
 
Hi Rob, thanks for the reply.
Yes, i checked for that - i should have mentioned that. The intended output of this program is a .dll file as a toolbox control. I am not sure if that matters. In the bin file there is no .dll file to reference. does that mean that the project is half-baked? I am attempting to compile the logincontrol from here:


thanks again.
Peter
 
hi. i figured this out by moving the control into my own project folder and not including it as a toolbox control.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top