11

I want to know how we can add projects in single solution file.

When I create the solution and try to add projects in it, the solution file is not visible.

How can I add projects/websites to the solution file?

p.campbell
  • 98,673
  • 67
  • 256
  • 322
Vijjendra
  • 24,223
  • 12
  • 60
  • 92
  • When you add Projects, you choose File -> Add -> Existing Project, select a .csproj or .vbproj file and it opens without error but doesn't show up in Project Explorer? – John Lewin Oct 17 '09 at 18:07

8 Answers8

16

"Tools" menu -> "Options" dialog -> "Projects and Solutions" tree node -> "General" tree node -> "Always show solution" checkbox. Make sure it's ticked.

Christian Hayter
  • 30,581
  • 6
  • 72
  • 99
4

File => New ... works for me.

tvanfosson
  • 524,688
  • 99
  • 697
  • 795
  • I have tried the same way my solution file is added but when i ma adding the projects in it the solution file is not in Solution explorer,now it shows the project i have add in the solutionfile – Vijjendra Oct 17 '09 at 17:33
2

On Visual Studio for Mac, right-click the solution name in the Solution Pad, then choose AddAdd New Project.

grooveplex
  • 2,492
  • 4
  • 28
  • 30
1

File -> add -> new website

amr osama
  • 1,129
  • 2
  • 18
  • 34
1

Go to File --> Add --> Existing project

[VS 2022]

Harrish Selvarajah
  • 1,763
  • 12
  • 11
0

Reset your VS settings.

Tools => Import and Export Settings...

Choose 'General Development Settings' from settings collection.

m3kh
  • 7,881
  • 2
  • 31
  • 37
0

Ran into this problem today, and the solution was a little different. I was actively debugging a program and wanted to add a new project to a solution. I was not able to right click->Add until I exited the debugger.

Andrew Prock
  • 6,900
  • 6
  • 40
  • 60
0

These are the steps, From Start to End, using Web API and MVC as examples:

Create new project->Web API->rename MainSolutionName.Web.API

Solution->rename->MainSolutionName

uncheck 'place solution and project in the same directory'

Once Created

Right-Click -> MainSolutionName

Add->New Project->MVC

project name->rename->MainSolutionName.Web

These are the steps I used.

Jephren Naicker
  • 336
  • 1
  • 2
  • 18