Visual Studio版本选择器无法打开 [英] Visual Studio Version Selector Doesn't open

查看:321
本文介绍了Visual Studio版本选择器无法打开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我并排安装了Visual Studio 2008和2010,但是尝试打开2008或2010 sln文件不会有任何结果.沙漏持续约一秒钟,然后消失,什么也没打开.

I have Visual Studio 2008 and 2010 installed side by side, but trying to open either a 2008 or 2010 sln file results in nothing. The hour glass comes on for about a second and then it goes away and nothing is opened.

我在某个地方读到了将sln文件直接与VS相关联的信息,但是我不能走那条路,因为我不希望在2010年打开2008年的解决方案.有人知道这个问题可能是什么以及如何解决?/p>

I read somewhere to relate sln file to VS directly, but I can't go that route because I don't want 2008 solutions to open with 2010. Does anyone know what the problem might be and how to fix it?

推荐答案

如果您在启用了UAC的情况下运行Vista或Windows 7,并且在Visual Studio exe的兼容性"选项卡上选中了以管理员身份运行该程序"( devenv.exe),当您尝试直接从Windows资源管理器中打开sln文件时,将出现此行为.

If you are running Vista or Windows 7 with the UAC enabled and have "Run this program as an Administrator" checked on the Compatibility tab for the Visual Studio exe (devenv.exe), you will get this behavior when you try to open a sln file directly from Windows Explorer.

一种解决方案是转到%ProgramFiles%\ Common Files \ Microsoft Shared \ MSEnv" 或(%ProgramFiles(x86)%\ Common Files \ Microsoft Shared \ MSEnv" (对于64位系统),然后右键单击 VSLauncher.exe ,然后选择属性.在兼容性标签上,选中"以管理员身份运行此程序".现在,当您尝试直接从Windows资源管理器中打开sln文件时,系统会显示提升提示,并将为该文件打开正确版本的Visual Studio.

One solution is to go to "%ProgramFiles%\Common Files\Microsoft Shared\MSEnv" or ("%ProgramFiles(x86)%\Common Files\Microsoft Shared\MSEnv" for 64-bit systems) and right-click VSLauncher.exe and select Properties. On the Compatibility tab, check "Run this program as an Administrator". Now when you try to open a sln file directly from Windows Explorer, you will get the elevation prompt and it will open the correct version of Visual Studio for the file.

这篇关于Visual Studio版本选择器无法打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆