WinRT 中对反射做了很多限制,假设 Windows Store 应用引用了一个程序集 MyApp.Utils,其中有一个类叫做 MyUtils,可以使用以下方法获得程序集 MyApp.Utils 的版本号和文件版本号。 获得程序集版本号 方法一 using System.Reflection; public static string GetAssemblyVersion() { return Assembly.Load(new AssemblyName("MyApp.Utils")) .GetName().Version.ToString(