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

时光怂恿深爱的人放手 提交于 2019-12-04 22:16:34
Gerald Davis

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

Take a look at https://powerext.codeplex.com/

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

In Windows 7 Enterprise you can use windows explorer to right-click the assembly, click properties, then click the Details tab.

The property "Product version" has the assembly version formatted as major.minor.build#.revision#. The property "File version" has it too.

Not sure if this works in other versions of Windows 7.

You can always write a Shell Extension to add a property page to File Properties like it has been done here http://sbytestream.pythonanywhere.com/software/asmprops

Thanks to Ramesh Srinivasan, there's at least a way to add the file version to the Details pane of the explorer window. Add a string value to HKEY_CLASSES_ROOT\dllfile named PreviewDetails with the value prop:System.FileVersion;System.FileDescription;System.DateModified;System.Size‌​. That way if you are dealing with assemblies where the file version matches the assembly version, as Jerome suggested, at least you can see it just by selecting the assembly. I couldn't find anywhere where the available system file properties are documented.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!