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

Reply via email to