2
Answers

How to work with multiple projects in the same solution explorer

Photo of theo philus

theo philus

16y
10.3k
1
can anyone help on how to work with multiple projects in the same solution explorer
that is to say I have project A and project B in the same solution explorer.And I want to call call classes in project B whilst in project B and vice-versa.

please send me any codes through :theodondre@yahoo.com

theo theod

Answers (2)

0
Photo of Ryan Alford
NA 2.3k 891.7k 16y
Instead of using the "Browse" tab, use the "Project" tab to add a reference.
0
Photo of Stefan
NA 624 0 16y
You don't have to have both in the solution explorer. Open the main project you will be using. In the solution explorer, right-click the references folder. Click "Add Reference...". In the pop up, select the browse tab. Browse the project folder of the project you want to call from. Go to the debug folder and select the .exe or .dll of your project. Select "OK". You should now see the name of that project in your references folder. Add it to your namespaces (i.e. "using MyProject"). Now simply call the method the way you normally would (i.e. "MyProject.Class1.Method1();").

Alternatively, Visual Studio has an option to add a project to your current solution.

Hope this helps!