Click here to monitor SSC

Bart

Software Engineer - Red Gate Software

.NET Reflector Support: Does .NET Reflector support unmanaged code?

Published Friday, July 31, 2009 5:25 PM

The answer to this is, unfortunately, no. .NET Reflector will work with any managed assemblies from .NET 1.0 onwards, and other .NET implementations, such as Mono, but it will not support portable executables-i.e., DLLs and EXEs-containing unmanaged code, such as those generated by Visual Studio 6 and earlier, Delphi (in its pre-.NET incarnation), VB6 or earlier (i.e. VB-classic), or any other language that does not compile to a managed assembly.

To complicate matters, in Visual Studio .NET 2002, 2003, Visual Studio 2005, and 2008, it's possible to compile C++ as managed or unmanaged code. .NET Reflector supports assemblies compiled with managed C++, but not portable executables compiled with unmanaged C++. If you're using one of these versions of Visual Studio with C++ and .NET Reflector complains that your DLL or EXE "does not contain a CLI header," it means you are using unmanaged C++.

It's also possible that you might see this message where assemblies have been protected with certain obfuscators.

by Bart Read
Filed Under: , ,

Comments

 

Bart said:

There are various reasons why .NET Reflector might fail to decompile a particular method, generate source...
August 7, 2009 12:24 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.
<July 2009>
SuMoTuWeThFrSa
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678
How to Kill a Company in One Step or Save it in Three
 The majority of companies that suffer a major data loss subsequently go out of business. Wesley David... Read more...

Migrating from OCS 2007 R2 to Lync: Part 4
 Having migrated the rest of our users and legacy resources across and started getting ready to... Read more...

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...

Seth Godin: Big in the IT Business
 Seth Godin has transformed our understanding of marketing in IT. He invented the concept of 'permission... Read more...

Using SQL Test Database Unit Testing with TeamCity Continuous Integration
 With database applications, the process of test and integration can be frustratingly slow because so... Read more...