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