Freigeben über


Editing in Visual Studio 2008 Instead of Visual Studio 2005

In Expression Blend 2, when you choose to edit a code file or insert an event handler for an event, by default, Visual Studio will be launched. If you have multiple versions of Visual Studio (VS) installed, though, you may find that a different version of VS than the one you intended to open will get launched. The most common case is where you have both VS 2005 and VS 2008 installed, but VS 2005 gets launched by Blend instead of VS 2008.

The fix for this involves editing your registry. From the Run prompt (WinKey + R), type regedit and press enter:

image

With your Registry Editor now running, navigate to HKEY_CLASSES_ROOT\VisualStudio.DTE.9.0\CLSID. Copy the Value Data from this key:

image

With that value copied, go to HKEY_CLASSES_ROOT\VisualStudio.DTE\CLSID, and overwrite its existing value with the data you just copied a few seconds.

This change should let Expression Blend know to launch Visual Studio 2008 instead of Visual Studio 2005.

Thanks,
Jeetendra “Jeetu” Kukreja

Comments

  • Anonymous
    September 23, 2008
    In Expression Blend 2, when you choose to edit a code file or insert an event handler for an event, by

  • Anonymous
    September 23, 2008
    In Expression Blend 2, when you choose to edit a code file or insert an event handler for an event, by

  • Anonymous
    September 24, 2008
    Are the 2 PM positions posted here in August still open?

  • Anonymous
    September 24, 2008
    Bookmarked, thanks for the info.

  • Anonymous
    September 25, 2008
    Expression is always looking for great talent. If you or someone you know is interested in a position similar to the ones listed earilier please send me your resume and contact information at joamason AT Microsoft.

  • Anonymous
    September 29, 2008
    196 Microsoft Team blogs searched, 97 blogs have new articles in the past 7 days. 218 new articles found...

  • Anonymous
    November 02, 2008
    Thanks!! After I install VS 2005, for work motives, Blend Uses It as the code behind editor instead of VS 2008, so I have been try it and WORKS!!! Thanks again!!

  • Anonymous
    November 23, 2008
    Great!! Just what I need!! Thanks for the info..

  • Anonymous
    January 29, 2009
    I followed the steps above exactly at no avail. I am running Expression Blend 2 and I'd like to edit event code in VS2008. Blend keeps trying to launch VS2005 and warns that I need to run it as administrator. I also changed the value of key: HKEY_CLASSES_ROOTVisualStudio.DTECurVer to: VisualStudio.DTE.9.0 instead of: VisualStudio.DTE.8.0 I have .NET 3.5 installed. I know there was an issue with Blend support in VS2008 with versions above .NET 3.0. I was under the impression it was resolved. I'm not using silverlight, just WPF. I hope I have given enough information about the problem. I'd appreciate some help with this. Thanks!

  • Anonymous
    February 07, 2009
    You've been kicked (a good thing) - Trackback from DotNetKicks.com