我如何在Windows Vista和更高版本(WIndows 7,2008)中看到.NET程序集的程序集版本? [英] How can i see the assembly version of a .NET assembly in Windows Vista and newer (WIndows 7, 2008)?

查看:128
本文介绍了我如何在Windows Vista和更高版本(WIndows 7,2008)中看到.NET程序集的程序集版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows 2003和Windows XP中,您可以右键单击程序集(.dll),转到属性,单击版本选项卡,然后会看到3个不同的版本号:程序集版本,文件版本和产品版本.

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.

如果您使用相同的文件并在Windows 2008中查看其属性,则只会看到文件版本和产品版本.

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

是否可以在Windows Vista和更高版本(没有第三方工具)中查看.NET程序集的程序集版本?

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

推荐答案

否.不是来自资源管理器.这是Microsoft的有意举动(尽管我不喜欢它).

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

不过,您可以从powershell中进行

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.

以下是一些信息: http://all-things-pure .blogspot.com/2009/09/assembly-version-file-version-product.html

这篇关于我如何在Windows Vista和更高版本(WIndows 7,2008)中看到.NET程序集的程序集版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆