我是visual studio的新手,我正在尝试一些Windows服务。我已经创建了两个解决方案,我想同时查看它们。无需点击file->最近的项目来来回切换。
理想情况下,这可以发生在解决方案资源管理器中,只是嵌套项目,但我只能在那里一次查看一个解决方案/项目。
是否有办法在Visual Studio中查看多个解决方案/项目?
我是visual studio的新手,我正在尝试一些Windows服务。我已经创建了两个解决方案,我想同时查看它们。无需点击file->最近的项目来来回切换。
理想情况下,这可以发生在解决方案资源管理器中,只是嵌套项目,但我只能在那里一次查看一个解决方案/项目。
是否有办法在Visual Studio中查看多个解决方案/项目?
当前回答
我想到了两种方法……
Open another visual studio window and open the second solution in it. It would be preferable to add your existing projects to one solution, just right click and add existing project and navigate to the project file(csproj). .... e.g. C:\Users\User\Documents\Visual Studio 2012\Projects\MySqlWindowsFormsApplication1\MySql Windows Forms Project1\MySql Windows Forms Project1.csproj ....In this second way you might want to setup multiple start up projects i.e. for people with client-server apps or apps with dependencies. ....To do this Select the solution then GoTo: Project>>Properties>>Startup Project>> Select Multiple Startup projects and set actions to Start. When you debug, the selected as start will run. For interest sake you could open another multiple solution windows to view different projects at the same time. http://www.schwammysays.net/visual-studio-2012-tip-multiple-solution-explorers/
其他回答
有一种方法可以将多个解存储在VS的一个实例中。
尝试以下步骤:
文件>打开>项目/解决方案 这将打开项目窗口,注意底部的选项,选择添加到解决方案
然后选择要添加的文件并单击打开 这将把解决方案添加到项目中。你仍然不能在一个VS实例中运行同一个项目,但是你可以把所有的代码组织在一个地方。
注意: 这适用于Visual Studio 2013 Professional
您可以创建一个新的空白解决方案,并将不同的项目添加到其中。
不知道这是否有用,但如果你想在多个项目中工作,而不需要在项目树中导航{像多窗口},你可以尝试在另一个虚拟桌面中打开VS(至少在Windows 10中是可能的),按住Ctrl+win+D。然后打开另一个VS工作室,在那里打开你的其他项目。您可以通过Ctrl+win+箭头键{左/右}在项目之间切换。
在一个Visual Studio实例中可以有多个项目。VS解决方案的重点是将你想要使用的所有项目集中在一个地方,所以你不能在一个实例中有多个解决方案。你必须分别打开每个溶液。
我想到了两种方法……
Open another visual studio window and open the second solution in it. It would be preferable to add your existing projects to one solution, just right click and add existing project and navigate to the project file(csproj). .... e.g. C:\Users\User\Documents\Visual Studio 2012\Projects\MySqlWindowsFormsApplication1\MySql Windows Forms Project1\MySql Windows Forms Project1.csproj ....In this second way you might want to setup multiple start up projects i.e. for people with client-server apps or apps with dependencies. ....To do this Select the solution then GoTo: Project>>Properties>>Startup Project>> Select Multiple Startup projects and set actions to Start. When you debug, the selected as start will run. For interest sake you could open another multiple solution windows to view different projects at the same time. http://www.schwammysays.net/visual-studio-2012-tip-multiple-solution-explorers/