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