Binary comatibilty

  • Thread starter Thread starter Trevor Hardwick
  • Start date Start date
T

Trevor Hardwick

Is there a utility out there that allows you to take two versions of the
same assembly and check their compatibility?

In the days of vb6 you could set binary compatibility and reference the dll
you want to be compatible with and good old vb6 would tell you at compile
time if you have broken compatibility.

I know I could write a utility myself to check for new members etc. I just
wondered if anyone had already done it.
 
You can use Reflection to get information on all of the members and compare
the signatures. Look at the System.Reflection namespace objects. A quick
google search should yield some great examples at using Reflection to query
assemblies.


---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 
Hi Trevor,

As for the .net assembly 's version, you can use the System.Reflection
namespace's apis to retrieve the class/method/version info from a .net
assmbly programly.
Also, there're some good tools for checking the .net assembly's metadata or
event recompiled code such as the builin ILDASM.EXE and Lutz roeder's .NET
Reflector tool:

#Ildasm.exe Tutorial
http://msdn.microsoft.com/library/en-us/cptutorials/html/il_dasm_tutorial.as
p?frame=true

#Reflector for .NET
http://www.aisto.com/roeder/dotnet/

Hope also helps. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
Back
Top