Adding multiple projects to solution

2019-08-08 04:31发布

This seems to be extremely annoying. I create a blank solution and add an existing project or website to it and then the solution folder disappears and it just shows the added project, so I can't add any more projects or websites to the solution...

Update **

I'm not sure if this was from an extension or just by default, but in the Tools -> Options -> Projects and Solutions I found an option called "Always show solution" and it was unchecked. When I checked it the solution folder appeared so that I could right-click on it to add additional projects.

6条回答
疯言疯语
2楼-- · 2019-08-08 05:03

This may be because of the "Always Show Solution" setting that may be unchecked.

It can be found in the menu in Tools -> Options -> Projects and Solutions -> General.

When unchecked, it'll hide the solution item when there is one project (source).

查看更多
够拽才男人
3楼-- · 2019-08-08 05:13

Maybe you use VS express and there is restriction You can create just 1 project there.

查看更多
淡お忘
4楼-- · 2019-08-08 05:16

To create a project and add it to a solution:

  1. In Solution Explorer, choose the solution or the solution folder to which you want to add a project that you create.
  2. On the menu bar, choose File, Add, New Project.
  3. In the left pane, select Installed, and select a category of project types from the expanded list.
  4. Select one of the project Templates from the middle pane.
  5. In the Name box, type a name for the new project and then select OK.

Read How to: Create Multi-Project Solutions for more information.

查看更多
迷人小祖宗
5楼-- · 2019-08-08 05:17

just open solution file > open solution .. then right click the solution folder > add project

Step by step

查看更多
smile是对你的礼貌
6楼-- · 2019-08-08 05:19

You need to set studio to always show the solution

From the menu: Tools -> Options -> Project and Solutions
Check the option: Always show solution

查看更多
相关推荐>>
7楼-- · 2019-08-08 05:25

You can add an existing project simply going to File -> Add -> Existing Project....

This works and your solution will reappear in the Solution Explorer

查看更多
登录 后发表回答