How to tell if an assembly is .net 1.1 or .net 2.0

How to tell if an assembly is .net 1.1 or .net 2.0

am 19.12.2007 00:42:35 von weisun.aa

Manually

Thanks!

Re: How to tell if an assembly is .net 1.1 or .net 2.0

am 19.12.2007 06:31:12 von mattias.dont.want.spam

You can use the Corflags.exe tool from the .NET 2.0 SDK. Or look at
what version of mscorlib the assembly references with a tool like
Ildasm or Reflector.

Programmatically, check Assembly.ImageRuntimeVersion.


Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

Re: How to tell if an assembly is .net 1.1 or .net 2.0

am 19.12.2007 11:12:38 von Andrew Morton

weisun.aa@ wrote:
> Manually

Open it in a text editor. Somewhere in the first couple of KB or so it will
mention mscorlib being version 1.0.5000.0 or 2.0.0.0.

Andrew

Re: How to tell if an assembly is .net 1.1 or .net 2.0

am 19.12.2007 15:56:49 von weisun.aa

Thanks a lot! That brings another question, but I will start a new
post.