ChiakiYu.Common.Extensions.AssemblyExtensions.GetProductVersion C# (CSharp) Method

GetProductVersion() public static method

获取程序集的产品版本
public static GetProductVersion ( this assembly ) : System.Version
assembly this
return System.Version
        public static Version GetProductVersion(this Assembly assembly)
        {
            var info = FileVersionInfo.GetVersionInfo(assembly.Location);
            return new Version(info.ProductVersion);
        }