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>

 

https://docs.microsoft.com/zh-cn/visualstudio/msbuild/msbuild-properties1?view=vs-2015

 

posted @ 2020-07-18 20:27  以沫浅夏  阅读(918)  评论(1编辑  收藏  举报