Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can i see the assembly version of a .NET assembly in Windows Vista and newer (WIndows 7, 2008)?

In windows 2003 and windows XP you could right click on an assembly (.dll) go to properties, click on the version tab and then you would see 3 different version numbers: Assembly version, file version and product version.

If you take that same file and look at its properties in windows 2008, you will only see file version and product version.

Is there a way to see the assembly version of a .NET assembly in windows vista and newer (without third part tools)?

like image 830
Mark Avatar asked Nov 10 '10 17:11

Mark


People also ask

Where is version information stored of an assembly?

The version number is stored in the assembly manifest along with other identity information, including the assembly name and public key, as well as information on relationships and identities of other assemblies connected with the application.

What is the order of an assembly version?

The AssemblyVersion attribute assigns the version number of the assembly, and this is embedded in the manifest. Version information for an assembly consists of the following four values : a major and minor version number, and two further optional build and revision numbers.

What is an assembly version?

The Product version of the assembly. This is the version you would use when talking to customers or for display on your website. This version can be a string, like '1.0 Release Candidate'. The AssemblyInformationalVersion is optional. If not given, the AssemblyFileVersion is used.

Which of the following components support versioning in .NET framework?

The CLR supports versioning of shared assemblies via the GAC and allows for side by side versioning and Automatic QFEs (hotfixes). Side by side versioning means multiple versions of the same component can be stored in the GAC at the same time.


2 Answers

No. Not from explorer. It is an intentional move by Microsoft (although I dislike it).

You can from powershell though:

[Reflection.AssemblyName]::GetAssemblyName('full-path-to\xxxx.dll').Version

Also if file version is not explicitly set it will default to assembly version.

Here is some info: http://all-things-pure.blogspot.com/2009/09/assembly-version-file-version-product.html

like image 135
Gerald Davis Avatar answered Oct 05 '22 08:10

Gerald Davis


Take a look at https://github.com/ssidpat/powerext

I know this is way late but I found this question when trying to find the extension again so others may find it too...

like image 22
Mark Avatar answered Oct 05 '22 08:10

Mark