Vijjendra
Vijjendra

Reputation: 25213

How do you add new projects to a Visual Studio Solutions file?

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?

Upvotes: 12

Views: 21825

Answers (8)

Jephren Naicker
Jephren Naicker

Reputation: 356

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.

Upvotes: 0

Harrish Selvarajah
Harrish Selvarajah

Reputation: 1873

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

[VS 2022]

Upvotes: 1

grooveplex
grooveplex

Reputation: 2529

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

Upvotes: 2

Andrew Prock
Andrew Prock

Reputation: 7107

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.

Upvotes: 0

Christian Hayter
Christian Hayter

Reputation: 31071

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

Upvotes: 16

amr osama
amr osama

Reputation: 1149

File -> add -> new website

Upvotes: 1

m3kh
m3kh

Reputation: 7941

Reset your VS settings.

Tools => Import and Export Settings...

Choose 'General Development Settings' from settings collection.

Upvotes: 0

tvanfosson
tvanfosson

Reputation: 532435

File => New ... works for me.

Upvotes: 4

Related Questions