C#判断指定文件是否是私有版本
using System; using System.Diagnostics; class MainClass { static void Main(string[] args) { FileVersionInfo info = FileVersionInfo.GetVersionInfo("c:\\a.txt"); Console.WriteLine("IsPrivateBuild: " + info.IsPrivateBuild); } }
C#判断指定文件是否是私有版本
using System; using System.Diagnostics; class MainClass { static void Main(string[] args) { FileVersionInfo info = FileVersionInfo.GetVersionInfo("c:\\a.txt"); Console.WriteLine("IsPrivateBuild: " + info.IsPrivateBuild); } }