Red Gate forums :: View topic - Clicking Open in Reflect kills DevStudio 2010
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
.NET Reflector 7 EAP
.NET Reflector 7 EAP forum

Clicking Open in Reflect kills DevStudio 2010

Search in .NET Reflector 7 EAP forum
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Jump to:  
Author Message
galen_dog



Joined: 01 Mar 2011
Posts: 6

PostPosted: Tue Mar 01, 2011 1:10 am    Post subject: Clicking Open in Reflect kills DevStudio 2010 Reply with quote

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
Back to top
View user's profile Send private message
nick.maidment



Joined: 29 Jan 2010
Posts: 74

PostPosted: Tue Mar 01, 2011 11:43 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
galen_dog



Joined: 01 Mar 2011
Posts: 6

PostPosted: Tue Mar 01, 2011 7:34 pm    Post subject: Reply with quote

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>();
}
}
}
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies. All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group