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

8

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?

Selfpossessed answered 17/10, 2009 at 17:23 Comment(1)
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?Heavyhearted
C
16

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

Chavaree answered 17/10, 2009 at 18:8 Comment(1)
See https://mcmap.net/q/1014715/-visual-studio-2019-quot-always-show-solution-quot-option-removed Option has been removed but set to true.Transcaucasia
B
4

File => New ... works for me.

Blotter answered 17/10, 2009 at 17:30 Comment(1)
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 solutionfileSelfpossessed
M
2

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

Meara answered 15/3, 2019 at 22:52 Comment(0)
M
1

File -> add -> new website

Monday answered 17/10, 2009 at 18:2 Comment(0)
B
1

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

[VS 2022]

Badajoz answered 17/4, 2023 at 17:47 Comment(0)
W
0

Reset your VS settings.

Tools => Import and Export Settings...

Choose 'General Development Settings' from settings collection.

Worrell answered 17/10, 2009 at 17:35 Comment(0)
H
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.

Hypersensitize answered 22/1, 2014 at 19:6 Comment(0)
P
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.

Plenish answered 18/7, 2023 at 18:21 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.