191
votes

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

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).

2
Which file is devenv.sln? Are you opening project files directly without them being associated with a solution file? Are you using VS to debug running processes or crash dump files without access to the source code?Dai
@Dai 1 question: devnv is a process which belongs to VS. have no idea what devenv.sln is. 2 question: no. 3 qustion: no.Dmitry Khryukin
looks like I've found a solution - social.msdn.microsoft.com/Forums/en/vssetup/thread/… will check laterDmitry Khryukin
I also experienced this after I had set devenv.exe to run as administrator in the compatibility tab. After also setting the vslaucher.exe to run as administrator (as suggested here) the problem was resolved.Bruno

2 Answers

311
votes

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

  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".

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

2
votes

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.

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