I have created a C# Application and want the version of assembly to be: 01.02.03.123
I have changed the following value in AssemblyInfo.cs
[assembly: AssemblyFileVersion("01.02.03.123")]
But, when I Build the project, and see the File Version of my assembly it shows as 1.2.3.123
How can I get "01.02.03.123" as the version.
程序集版本的每个部分都存储为16位整数,因此,不能,这些数字不能以前导零开头。
Version.Major.ToString("00") + "." + Version.Minor.ToString("00") + "." + Version.Build.ToString("00") + "." + Version.Revision.ToString("00");
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.