“在Visual Studio中打开” - 它可以选择正确的Visual Studio版本吗? [英] "Open in Visual Studio" - can it select the right Visual Studio version?
问题描述
我已经迁移到Visual Studio Team Services中的几个项目。
其中一些项目是最近的,并且.SLN文件打开到Visual Studio Studio 2015时我从资源管理器中启动它们。
有些不太新,而且.SLN文件从资源管理器打开到VS2013。
有些很古老, .SLN文件将打开VS2012。
我真的很想看到VSTS'"Open In Visual Studio"链接做同样的事情。我知道VS2012不受支持,所以我真的要问的是VS2013 SLN文件用于打开VS2013而不是VS2015。
Am 我在这里错过了一个选项我会这样做吗?
Alun。
您好,
感谢您与Microsoft论坛联系。我们很乐意回答您的问题。
我建议您尝试以下可能对您有所帮助的解决方法。
- 使用Visual Studio 2015打开解决方案文件
- 在解决方案资源管理器中选择解决方案文件
- 选择文件/将MySolution.sln另存为...
- 覆盖现有文件解决方案文件。
此外,您可以尝试以下解决方法
更改.sln文件中的版本
#Visual Studio 2013
VisualStudioVersion = 12.0.31101.0
匹配您的任何版本
示例:
#Visual Studio 2015
VisualStudioVersion = 14.0.23107.0
I have several projects I've moved into Visual Studio Team Services.
Some of them are recent, and the .SLN files open into Visual Studio 2015 when I start them from Explorer.
Some are less recent, and the .SLN files open into VS2013 from Explorer.
Some are pretty ancient, and .SLN files will open VS2012.
I'd really like to see VSTS' "Open In Visual Studio" link do the same sort of thing. I know VS2012 isn't supported, so really, all I'm asking is that the VS2013 SLN files be used to open VS2013 instead of VS2015.
Am I missing an option here that'll let me do this?
Alun.
解决方案Hello,
Thank you for contacting Microsoft forums. We are pleased to answer your query.
I would suggest you try the below workarounds which may help you.
- Open the solution file using Visual Studio 2015
- Select the solution file in Solution Explorer
- Select File / Save MySolution.sln As...
- Overwrite the existing solution file.
Also, you can try the below workaround
Change the version in the .sln file
# Visual Studio 2013
VisualStudioVersion = 12.0.31101.0
To match whatever version you have
Example:
# Visual Studio 2015
VisualStudioVersion = 14.0.23107.0
这篇关于“在Visual Studio中打开” - 它可以选择正确的Visual Studio版本吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文