Moving file associations from Visual Studio 2005 to 2008
Both Visual Studio 2005 and Visual Studio 2008 are installed on my PC, but when I open the .aspx or .master file from Explorer it opens in 2005. I would like them to open in 2008.
I can change the file associations manually, but there are quite a few file extensions.
Is there an easy way to get all file associations back in 2008?
+2
source to share
2 answers
You have to do it like this.
First create a text file (associate) with all existing settings
assoc | findstr -i VisualStudio > assocs
Next, edit this file from 8.0 to 9.0 in cases such as:
.vbdproj = VisualStudio.vbdproj.8.0 -> .vbdproj = VisualStudio.vbdproj.9.0
Next, save this file and run the following command to create a batch file for changing settings:
for /f "tokens=1-10 delims==" %i in (assocs.) do @echo assoc %i=%j >> new_assocs.bat
Finally, run the batch file:
new_assocs.bat
0
source to share