8

我有一个类型的引用,我想检索它所在的程序集的版本号。

做这个的最好方式是什么?

4

1 回答 1

12

您可以使用,

x.GetType().Assembly.GetName().Version
于 2008-10-29T19:24:56.633 回答