How can we help you today? How can we help you today?

Clicking Open in Reflect kills DevStudio 2010

This appears to happen more if when it changing versions of .NET i.e. .NET 4 <=> .NET 3.5 but I've seen it either way.

Steps to repro
1) Open up Reflector 6.x sample Reflector
2) Navigate to the reference to the XDocument type and click Open in Reflector
3) Message box states you need to unload .NET 4.x and load 3.x click ok
4) Shutdown reflector and repeat steps 2 and 3. Visual Studio will inform you it needs to restart.

build 7.0.0.375

This does repro even without switching however you need to browe more times.

What I'd like is for the Reflector to be smart enough to know what version of .NET I'm using in the project and load this without asking.

I also of course would like the Reflector not to cause DevStudio 2010 not to die

thx
bob
galen_dog
0

Comments

2 comments

  • nick.maidment
    Could you clarify step #1 for me? "Open up Reflector 6.x sample Reflector"

    Is visual studio closing down gracefully or flat out crashing? If it's crashing a stack trace would be helpful.

    In Reflector go to tools -> options -> browser and enable side-by-side versioning. This should eliminate step #3 and allow you to load both .net 3.5 and .net 4 assemblies at the same time.
    nick.maidment
    0
  • galen_dog
    Sorry regarding step one I mistakenly thought this the project Refector was a sample I got from Redgate given the name; Disregard this instead following these instructions

    1) In VS2010 create a new project specify the .NET library to be 3.5 _not_ the default 4..0.

    2) Add the below code snippet or create your own which references a .NET class library I really don't think it matters.

    3) Follow steps 2) through 4 in my original post. You will see the 2nd or 3rd time you use Reflector that DevStudio dies. My suspicion given the circumstance is this has to do with the VS Reflector Addin.

    thx
    bob
    =====================================
    using System;
    using System.Collections.Generic;

    namespace ConsoleApplication1
    {
    class Program
    {
    static void Main(string[] args)
    {
    List<int> l = new List<int>();
    }
    }
    }
    galen_dog
    0

Add comment

Please sign in to leave a comment.