Launching Visual Studio from WebMatrix 2 opens wrong version

后端 未结 1 1246
旧巷少年郎
旧巷少年郎 2021-02-14 03:05

I\'m using Microsoft WebMatrix 2 to work on a simple ASP.NET WebPages site. When you are in the Files view, there is a Visual Studio La

相关标签:
1条回答
  • 2021-02-14 03:34

    Thanks to Mike Brind for the technical details of the solution in his blog post WebMatrix Opens Wrong Version Of Visual Studio.

    Basically you need to update these registry entries to point to the correct version of Studio. Remember to be careful when modifying the Windows Registry!

    HKEY_CLASSES_ROOT\VisualStudio.DTE\CLSID
    HKEY_CLASSES_ROOT\VisualStudio.DTE\CurVer
    

    Running the commands below will backup the registry entries first and set the values to be Visual Studio 2012. You will need to open an administrator / elevated priviledge command prompt to execute them.

    reg export HKEY_CLASSES_ROOT\VisualStudio.DTE %HOMEPATH%\Documents\VisualStudio.DTE-RegistryKeyBackup.reg
    reg add HKCR\VisualStudio.DTE\CLSID /ve /d {059618E6-4639-4D1A-A248-1384E368D5C3} /f
    reg add HKCR\VisualStudio.DTE\CurVer /ve /d VisualStudio.DTE.11.0 /f
    
    0 讨论(0)
提交回复
热议问题