Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个类型的引用,我想检索它所在的程序集的版本号。
做这个的最好方式是什么?
您可以使用,
x.GetType().Assembly.GetName().Version