Version version = new System.Reflection.AssemblyName( System.Reflection.Assembly.GetExecutingAssembly().FullName).Version; 通过ToString()方法就可以拿到在AssemblyInfo.cs中定义的版本号