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>