Mattias,
The output of ildasm shows major runtime version=2 and minor runtime
version=0,
which is not correct for assembly which is built by vs.net 2003 (.net 1.1).
I would expect the major to be 1 and minor to be 1.
So these 2 fields are probably not the ones.
I am sure it's stored somewhere in the header, but it's not obvious to me.
I don't have vs.net 2005 beta2 yet, so I can't use the clrver.exe you
mentioned below.
This tool, based on your description, shows the actually loaded clr
version, which can be different
from the one statically recorded in the assembly file (depending on the the
app's config.exe's <requiredRuntime> or <supportedRuntime> or other factor).
So it won't really work for me.
From: Mattias Sj�gren <[EMAIL PROTECTED]>
Reply-To: "Unmoderated discussion of advanced .NET topics."
<[email protected]>
To: [email protected]
Subject: Re: [ADVANCED-DOTNET] Looking for clrversion.exe tool
Date: Thu, 26 May 2005 20:52:19 +0200
Tony,
In Steven Pratschner's new CLR book, it mentions the clrversion.exe which
is
a tool that tells you the version of the CLR used to build an assembly.
The tool takes the an assembly name param and prints out the CLR versions.
I can't seem to find any references in the book or anywhere else that has
info on how to locate this tool.
Does anyone know ? Any similar tool is acceptable.
I haven't seen any such tool (or read the book). But in the .NET v2.0 beta2
SDK there's a tool called Clrver.exe, used to print the runtime versions
installed on the machine or that are loaded into running processes. It
doesn't take an assembly as input.
However, the new version of Ildasm.exe will print the "version string"
(which isn't necessarily a version number) at the very top of the manifest
disassembly. Like this
// Metadata version: v1.0.3705
You may also want to run Ildasm with the /headers flag for more details (or
select View -> Headers in the UI).
As a side note, where in the PE file of an assembly is this info (CLR
version used to build the assembly) is recorded ?
In the "storage signature" at the very beginning of the metadata (see
partition II section 23.2.1 of the ECMA 335 spec).
Mattias
--
Mattias Sj�gren
[EMAIL PROTECTED]
===================================
This list is hosted by DevelopMentor� http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
===================================
This list is hosted by DevelopMentor� http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com