Double-clicking to open Visual Studio solution files on Vista

by Matt Milner 21. May 2007 08:11
I got so tired of not being able to double-click my solution files in the Windows explorer that I finally figured out how to fix it.  First of all, I should mention that I'm running with UAC on in Vista and that I have VS configured to run as an admin.  So, I get prompted each time I start it, but that's OK, it’s a good reminder that I am running elevated and should test my code without the admin privileges. 
 
I was trying to figure out why, when my VS is set to run as admin, double-clicking would not work.  The thing that jumped out at me is that VS is not the default program for SLN files.  The Visual Studio Version Selector is the default program.  My first thought was to run that selector as admin all the time, but that didn't work.  So, I decided I don't need a version selector since I only have one version of VS on my machine right now, and mapped SLN files to DevEnv.exe.  Now, when I double click them, I get the UAC prompt and then it opens right up in Visual Studio. 
 
Hopefully this helps someone else with this little annoyance. 

Tags:

General Musings