编程得到一个DLL的版本号 [英] Programatically get the version number of a DLL
本文介绍了编程得到一个DLL的版本号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有可能从任何.NET的DLL拿到的版本号编程?
如果是,如何?
解决方案
装配总成= Assembly.LoadFrom(MyAssembly.dll程序);
版本版本= assembly.GetName()版本。
重要提示: 应当指出,这不是原来的问题的最佳答案。不要忘了阅读更多此页上。
Is it possible to get the version number programmatically from any .NET DLL?
If yes, how?
解决方案
Assembly assembly = Assembly.LoadFrom("MyAssembly.dll");
Version ver = assembly.GetName().Version;
Important: It should be noted that this is not the best answer to the original question. Don't forget to read more on this page.
这篇关于编程得到一个DLL的版本号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文