Clicking Open in Reflect kills DevStudio 2010

Explore, browse and analyze .NET assemblies

Moderators: Bart Read, Luke Jefferson, Clive Tong, nick.maidment

Clicking Open in Reflect kills DevStudio 2010

Postby galen_dog » Tue Mar 01, 2011 1:10 am

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
 
Posts: 6
Joined: Tue Mar 01, 2011 12:37 am

Postby nick.maidment » Tue Mar 01, 2011 11:43 am

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
 
Posts: 74
Joined: Fri Jan 29, 2010 1:55 pm

Postby galen_dog » Tue Mar 01, 2011 7:34 pm

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
 
Posts: 6
Joined: Tue Mar 01, 2011 12:37 am


Return to .NET Reflector 7 EAP

Who is online

Users browsing this forum: No registered users and 0 guests