Click here to monitor SSC

Bart

Software Engineer - Red Gate Software

.NET Reflector Support: Can I edit assemblies I've opened in .NET Reflector?

Published Friday, October 02, 2009 3:18 PM

Yes, you can. There are two possible approaches, both of which utilise add-ins to .NET Reflector.

The first, assuming that you've lost the source code, is to decompile back to source, edit the source code you need to change, and then recompile. If this is what you want to do, please refer to the information at:

http://www.simple-talk.com/community/blogs/bart/archive/2009/07/30/74199.aspx

Bear in mind that .NET Reflector's decompilation support isn't perfect-see http://www.simple-talk.com/community/blogs/bart/archive/2009/07/30/74203.aspx for more information-so you'll probably have to do some, and possibly quite a lot of, spade work to get the code to recompile successfully.

The second, and possibly better, approach is to use Sebastien Lebreton's Reflexil add-in, which you can find at:

http://sebastien.lebreton.free.fr/reflexil/

Reflexil supports direct editing of the IL, as well as injection of C# and VB code on the fly.

by Bart Read
Filed Under: , ,

Comments

 

Jason Haley said:

Interesting Finds: October 3, 2009
October 3, 2009 7:54 AM
 

Havadis #5 | Bulutlararas?? said:

October 3, 2009 11:46 AM
 

Used Cars Toyota Camry Xle, Toyota Camry Racing said:

May 20, 2010 2:39 PM
 

Concept Forester Parts, Legacy Rs Parts Forester said:

May 20, 2010 3:44 PM
 

Muffler Parts Toyota Cressida Shock Absorber, Order Cressida Oxygen Sensor said:

May 21, 2010 1:37 AM
 

Sunfire Replacement Exhaust Systems T304 Stainless Steel, 1999 Red Pontiac Sunfire said:

May 22, 2010 4:54 AM
 

Sable Accessories Auto Parts, Mercury Sable Ford Headlight Switch said:

May 22, 2010 12:41 PM
 

450sel Information, 450sel Aftermarket Guarantee Discount - 265.binggreen.com said:

May 23, 2010 2:19 AM
 

Police Probe Motorcycle Thefts, Ford Probe 2.0 Performance Spoiler - 12.zapstreaming.com said:

May 24, 2010 5:48 AM
 

Dodge W100 Pickup Used Windshield Glass St Regis, W100 Full Truck Pickup - 425.1fh.org said:

May 24, 2010 7:10 AM
 

1970 Falcon Gt Ford Torino, List Torino Srl - 125.1fh.org said:

May 24, 2010 11:48 PM
You need to sign in to comment on this blog

About Bart Read

Bart has done many things since he started work at Red Gate Software Ltd in August 2004, but nowadays he's (mainly) the product manager for the .NET Developer Tools. He still feels like this is a bit like admitting you were cheering for the Empire whilst watching Star Wars, but for now he's along for the ride. In a previous incarnation he was a project manager leading the .NET Reflector Pro, ANTS Memory Profiler 5, ANTS Performance Profiler 4 & 5, and SQL Prompt 3.0 - 3.6 projects. He still occasionally writes some code and, in the past, has touched the code for most of the Red Gate SQL developer tools... some of them still haven't recovered from the shock. He was born and grew up in Dorset, was educated in Nottingham and London, and likes music and real ale. His photo is extremely misleading.
<October 2009>
SuMoTuWeThFrSa
27282930123
45678910
11121314151617
18192021222324
25262728293031
1234567
Automated Script-generation with Powershell and SMO
 In the first of a series of articles on automating the process of building, modifying and copying SQL... Read more...

Converting String Data to XML and XML to String Data
 We all appreciate that, in general, XML documents or fragments are held in strings as text markup. In... Read more...

Geek of the Week: Don Syme
 With the arrival of F# 3.0 Microsoft announced a wide range of improvements such as type providers that... Read more...

How to Document and Configure SQL Server Instance Settings
 Occasionally, when you install identical databases on two different SQL Server instances, they will... Read more...

What's the Point of Using VARCHAR(n) Anymore?
 The arrival of the (MAX) data types in SQL Server 2005 were one of the most popular feature for the... Read more...