我是visual studio的新手,我正在尝试一些Windows服务。我已经创建了两个解决方案,我想同时查看它们。无需点击file->最近的项目来来回切换。

理想情况下,这可以发生在解决方案资源管理器中,只是嵌套项目,但我只能在那里一次查看一个解决方案/项目。

是否有办法在Visual Studio中查看多个解决方案/项目?


当前回答

经过长期的研究和不同的实验,“MAC用户”最简单的方法是创建一个脚本:

open -a "Visual Studio" \
"path to first sln" \
"path to second sln" \
...

:D

其他回答

如果你有两个独立的解,那么你不能在同一个VS实例中同时查看它们。但是,您可以在它们之间打开多个VS和制表符实例。

另一种选择是将项目从一个解决方案导入到另一个解决方案中,从而将所有项目放入一个解决方案中。你可以按照以下步骤来做:

在“解决方案资源管理器”中,选择要导入项目的解决方案。右键单击,并从上下文菜单中选择Add->Existing Project。 在文件选择器中,找到想要导入的项目文件(它将以. xxproj结尾,其中XX是您正在使用的语言)。 点击打开,瞧!项目已导入。

在一个Visual Studio实例中可以有多个项目。VS解决方案的重点是将你想要使用的所有项目集中在一个地方,所以你不能在一个实例中有多个解决方案。你必须分别打开每个溶液。

经过长期的研究和不同的实验,“MAC用户”最简单的方法是创建一个脚本:

open -a "Visual Studio" \
"path to first sln" \
"path to second sln" \
...

:D

MAC users - this issue was winding me up, as its not possible to open two different Visual Studio instances at the same time. Ive found a solution that works fine, though its a little unorthodox : get the latest beta testing version, which will install alongside your normal VS install in a separate sandbox (it does this automatically). You can then run both versions side by side, which is enough for what I needed - to be able to examine one project for structure, code etc., while doing the actual coding I need to do in the 'current' VS install instance.

File ->新建窗口。在该窗口中选择另一个项目。每个项目都位于一个单独的窗口中。你可以在它们之间切换。