VS自动按日期生成版本号
作者:互联网
VS自动按日期生成版本号,修改解决方案文件
<PropertyGroup> <TargetFramework>netstandard2.1</TargetFramework> <Revision>$([System.DateTime]::Now.ToString("yyyy.MM.dd.HHmm"))</Revision> <AssemblyVersion>$(Revision)</AssemblyVersion> <Authors></Authors> <Version>$(Revision)</Version> <GeneratePackageOnBuild>false</GeneratePackageOnBuild> <Description></Description> <Copyright></Copyright> <PackageId>HongMouer.EntityRelationalCore</PackageId> <PackageReleaseNotes></PackageReleaseNotes> <FileVersion>$(Revision)</FileVersion> <PackageProjectUrl></PackageProjectUrl> <Company /> <PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance> </PropertyGroup>
<Revision>$([System.DateTime]::Now.ToString("yyyy.MM.dd.HHmm"))</Revision>
<AssemblyVersion>$(Revision)</AssemblyVersion>
<Version>$(Revision)</Version>
<FileVersion>$(Revision)</FileVersion>
标签:版本号,System,yyyy,日期,VS,Now,HHmm,Revision 来源: https://www.cnblogs.com/liyangLife/p/13337255.html