Click here to Skip to main content
15,901,283 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello
i have a solution with 3 projects :
myproj1 and myproj2 are written in visual basic
and the third myproj3 is written in c# when i add
a reference (myproj3) to myproj1 from the solution explorer
and go to the classes of myproj1 and write the import statement
the intellisense does not show myproj3 .
so whats happening!
thanks in advance
Posted

1 solution

When a project written in different language is referenced from another project, the referenced project has to be rebuilt for the types and the intellisense to show for that project in the referencing project. So, rebuild the myproj3, either from build menu or by right clicking on myproj3 in solution explorer, selecting the rebuild menu option, and then try for intellisense in the myproj1
 
Share this answer
 
v2
Comments
cjoanson 8-Apr-12 11:13am    
it did not work
VJ Reddy 8-Apr-12 11:20am    
Please check. It worked for me.
cjoanson 9-Apr-12 0:49am    
any body have another idea
VJ Reddy 9-Apr-12 3:00am    
In .NET once the compilation is done the DLL file is generated in MSIL. Hence, after building the projects it is available from other projects. I created a solution with MyProj1, MyProj2 and MyProj3 as stated by you and tested. The procedure works. Rebuild your solution and try. If MyProj3 is not already set as ClassLibrary project, which is required for using it from other projects, please set it as ClassLibrary project right clicking on the project and selecting properties menu option.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900