Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

From within Visual Studio, right-click the Solution at the top of the Solution Explorer and select Add Existing Project from the pop-up menu. Browse to the C# Project and add it to the Solution. It will appear in the Solution Explorer. Of course, if you're adding a new project, you will create a new C# project instead of adding an existing one.

 

Now, right-click the References object in your VB Project and select Add Reference from the pop-up menu. Select the Projects tab on in the Add Reference dialog and click the Select button after you have chosen the Project you wish to add. Click OK once your C# Project appears in the Selected Components list.

 

Make a note of the 'namespace' of the C# project you are adding. At the top of the code window in your VB Project, you should now be able to type "Imports " and have the namespace of the C# Project appear in intellisense.

 

You should now be able to consume the C# Project in your VB Solution.

 

Download Temporary Sample Solution - This download will not be available at this location forever.

"Never ascribe to malice that which can adequately be explained by incompetence." -- Napolean Bonaparte
Posted (edited)
From within Visual Studio, right-click the Solution at the top of the Solution Explorer and select Add Existing Project from the pop-up menu. Browse to the C# Project and add it to the Solution. It will appear in the Solution Explorer. Of course, if you're adding a new project, you will create a new C# project instead of adding an existing one.

 

Now, right-click the References object in your VB Project and select Add Reference from the pop-up menu. Select the Projects tab on in the Add Reference dialog and click the Select button after you have chosen the Project you wish to add. Click OK once your C# Project appears in the Selected Components list.

 

Make a note of the 'namespace' of the C# project you are adding. At the top of the code window in your VB Project, you should now be able to type "Imports " and have the namespace of the C# Project appear in intellisense.

 

You should now be able to consume the C# Project in your VB Solution.

 

Download Temporary Sample Solution - This download will not be available at this location forever.

 

Before i built my C# solution, should i need to change my output to dll instead of window application?

Then just add in the dll file,

can i do so??

Edited by miwaypro
programing programer program
Posted
I don't know for sure. I'm going to say "no". You should not have to change the output for your C# class.
"Never ascribe to malice that which can adequately be explained by incompetence." -- Napolean Bonaparte

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...