« Previous Next »

Answered Thread: WebMatrix open Visual Studio 2008 problem

Last post 05-17-2011 5:07 AM by Doggy8088. 2 replies.

 

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 05-13-2011, 10:22 AM

    • Doggy8088
    • Top 150 Contributor
    • Joined on 11-24-2002, 2:58 PM
    • Taiwan
    • Posts 69

    WebMatrix open Visual Studio 2008 problem

    I have both Visual Studio 2008 and Visual Studio 2010 in my laptop.  When I click on the Visual Studio button in the Files Ribbon in the File workspace, it opened Visual Studio 2008 which is wrong because my ASP.NET Web Pages is supported on in .Net 4.  Is there any way to solve this problem?

  • 05-17-2011, 4:44 AM In reply to

    • simtan
    • Top 50 Contributor
    • Joined on 06-14-2010, 6:33 PM
    • Redmond, WA
    • Posts 282

    Answered Re: WebMatrix open Visual Studio 2008 problem

    Hello,

    Yes, it is possible to change this behavior.

    By default, WebMatrix will use the latest version of Visual Studio installed - so if you had installed Visual Studio 2008 after 2010, WebMatrix will default to running with 2008 because it considers it as the "current" version installed.

    To change this, you will have to modify registry keys that Visual Studio uses to tell Windows which version is the "current" version.

    These keys should be:

    HKEY_CLASSES_ROOT\VisualStudio.DTE\CurVer = VisualStudio.DTE.10.0

    HKEY_CLASSES_ROOT\VisualStudio.DTE\CLSID = {656D8328-93F5-41a7-A48C-B42858161F25}


    The CLSID above came from HKEY_CLASSES_ROOT\VisualStudio.DTE.10.0\CLSID

    Keep in mind to back up your registry before making any changes to it.

    Let us know if this works for you!

    Simon Tan
    Program Manager
    Web Platform and Tools
  • 05-17-2011, 5:07 AM In reply to

    • Doggy8088
    • Top 150 Contributor
    • Joined on 11-24-2002, 2:58 PM
    • Taiwan
    • Posts 69

    Re: WebMatrix open Visual Studio 2008 problem

    It works.  Thank you.  :-)
Page 1 of 1 (3 items)