.net 禁用 Visual Studio devenv 解决方案保存对话框

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/13595999/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-03 16:44:57  来源:igfitidea点击:

Disable Visual Studio devenv solution save dialog

.netvisual-studiovisual-studio-2012

提问by Dmitry Khryukin

When I open my solution by double click on solution file in a file manager, Visual Studio 2012 asks me whether I want to save devenv.sln: enter image description here

当我通过双击文件管理器中的解决方案文件打开我的解决方案时,Visual Studio 2012 询问我是否要保存 devenv.sln: 在此处输入图片说明

How can I avoid this annoying thing? (except of opening vs first and than solution - I want just to click a solution file in my file manager).

我怎样才能避免这种烦人的事情?(除了打开 vs first 而不是解决方案 - 我只想在我的文件管理器中单击一个解决方案文件)。

回答by Rami A.

As indicated here, you have to configure "C:\Program Files (x86)\Common Files\microsoft shared\MSEnv\vslauncher.exe"to run as Administrator.

如图所示在这里,你必须配置"C:\Program Files (x86)\Common Files\microsoft shared\MSEnv\vslauncher.exe"以管理员身份运行。

  1. Right-click C:\Program Files (x86)\Common Files\microsoft shared\MSEnv\VSLauncher.exe
  2. Select Properties
  3. Click Compatibility
  4. Set "Run this program as an administrator".
  1. 右键点击 C:\Program Files (x86)\Common Files\microsoft shared\MSEnv\VSLauncher.exe
  2. 选择属性
  3. 点击兼容性
  4. 设置“以管理员身份运行此程序”。

I also did the same for C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe.

我也对C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe.

回答by John Baughman

Another option, a bit less obvious, is to save the devenv.sln file to the Visual Studio IDE folder for that version of Visual Studio. This was an option described in the link noted above.

另一个不太明显的选项是将 devenv.sln 文件保存到该版本的 Visual Studio 的 Visual Studio IDE 文件夹中。这是上面提到的链接中描述的一个选项。

Probably notthe best option, but it is an option none the less.

可能不是最好的选择,但它仍然是一个选择。