简体   繁体   English

如何选择为.vcproj文件启动哪个Visual Studio版本?

[英]How to select which Visual Studio version is launched for a .vcproj file?

We are still using VS2005 for C++ development (upgrading is planned!) The problem is we also have VS2010 shell installed to work with TFS. 我们仍在使用VS2005的C ++开发(升级计划 !)问题是,我们也有安装了TFS工作VS2010外壳。 If I double-click a .SLN file, VS2005 launches correctly, but if I double-click a .vcproj file VS2010 is launched even though since it's only the shell, it has no way to open the project! 如果我双击.SLN文件,则VS2005会正确启动,但是如果我双击.vcproj文件,则VS2010会启动,即使它只是外壳程序,也无法打开项目!

I understand there is a special launcher-version tool involved here, how can I tell it to launch VS2005 in all cases? 我知道这里有一个特殊的启动器版本工具,如何告诉它在所有情况下都启动VS2005?

我发现可靠地做到这一点的唯一方法是从所需的VS版本运行vcvarsall.bat

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何选择要在构建计算机上使用的Visual Studio版本? - How to select the Visual Studio version to use on the build machine? 在Visual Studio中启动程序时看不到文件 - program doesn't see a file when launched in visual studio 如何在Windows 8 / Visual Studio 2010中选择SDK的版本? - How do I select the version of the SDK in Windows 8 / Visual Studio 2010? 安装Visual Studio 2010时,将.vcproj文件分配给Visual Studio 2008 - Assign .vcproj files to Visual Studio 2008, when Visual Studio 2010 installed 如何在Visual Studio中构建包含活动文件的项目? - How to build the project which contains the active file in visual studio? 哪个版本的Visual Studio 2010包含Visual Basic SharePoint模板 - Which version of Visual Studio 2010 contains Visual Basic SharePoint Templates 如何选择我的测试将在Visual Studio中运行的CLR版本? - How can I choose which version of the CLR my tests will run under in Visual Studio? 如何选择使用哪个Excel版本通过Visual Studio 2010调试VSTO项目 - How to choose which Excel version is used for debugging a VSTO project with Visual Studio 2010 在Visual Studio中查找文件所属的解决方案 - Finding which solution a file belongs to in Visual Studio 指定Visual Studio使用哪个版本的aspnet_compiler? - Specify which version of aspnet_compiler Visual Studio uses?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM