VS2010 Solutions Always Opening with VS2008?
I just installed VS2010 via the web installer on a Win7 machine that already had 2008. Everytime I open a 2010 sln file it launches 2008 and errors saying the solution was created with a 开发者_开发百科newer version. I can do an "Open With..." and choose 2010 or the 2010 version selector, but the option to "Always Open With" is grayed out. I went into Control Panel > File Associations and the option is grayed out there too.
How the heck can I get my machine to launch 2010 for 2010 solutions??
Are you using Vista or Windows 7? If I recall correctly, there is an option in the start menu called "Default Programs". Go there, find the SLN extension, and pick VS2010 to open it. This should set the default program for you without any more prompting.
I did the following to fix my problem: Go into VS 2010 and click "Tools", Options, Environment, General, "Restore File Associations"
I tried this option first without any success: 1. Go to "C:\Program Files (x86)\Common Files\microsoft shared\MSEnv\VSLauncher.exe" 2. Set Properties->Compatibility->Run this program as an administrator.
精彩评论