Friday, February 20, 2009

Ever Wanna Know About a CLR Assembly?

 

Ever Wanna Know About a CLR Assembly?

Published 20 February 09 03:27 PM

Have you ever wanted to know what version of the CLR a file was built using?  I found a handy command-line tool (included in the SDK) that can be executed against a .Net assembly:

corflags.exe <AssemblyName>.dll

This will produce output that looks like this:

C:\Executables>corflags WhidbeySerializer.dll

Microsoft (R) .NET Framework CorFlags Conversion Tool.  Version  3.5.21022.8

Copyright (c) Microsoft Corporation.  All rights reserved.

Version   : v2.0.50727

CLR Header: 2.5

PE        : PE32

CorFlags  : 1

ILONLY    : 1

32BIT     : 0

Signed    : 0

The Version element tells me that this DLL was built using .Net Framework 2.0.50727

by tmcadoo

Quality Software Engineering Strategies : Ever Wanna Know About a CLR Assembly?

No comments:

Blog Archive