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

查看:17
本文介绍了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 相关联的内容,但我不能走那条路,因为我不希望 2008 年的解决方案在 2010 年打开.有谁知道问题可能是什么以及如何解决它?

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 FilesMicrosoft SharedMSEnv" 或 ("%ProgramFiles(x86)%Common FilesMicrosoft SharedMSEnv"(对于 64 位系统)并右键单击 VSLauncher.exe 并选择属性.在兼容性选项卡上,选中以管理员身份运行此程序".现在,当您尝试直接从 Windows 资源管理器中打开 sln 文件时,您将获得提升提示,并且它将为该文件打开正确版本的 Visual Studio.

One solution is to go to "%ProgramFiles%Common FilesMicrosoft SharedMSEnv" or ("%ProgramFiles(x86)%Common FilesMicrosoft SharedMSEnv" 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天全站免登陆