简化程序集版本,避免不一致

This commit is contained in:
大石头 2023-03-06 16:54:40 +08:00
parent af3304b0d4
commit 40b83e4c0f
2 changed files with 4 additions and 7 deletions

View File

@ -15,15 +15,13 @@ jobs:
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Get Version
run: echo "VERSION=$(date '+%Y.%m%d')" >> $GITHUB_ENV
- name: Build
run: |
dotnet build -c Release --version-suffix ${{ env.VERSION }}
dotnet build -c Release
- name: Pack
run: |
dotnet pack --no-build --version-suffix ${{ env.VERSION }} -o out Stardust/Stardust.csproj
dotnet pack --no-build --version-suffix ${{ env.VERSION }} -o out Stardust.Extensions/Stardust.Extensions.csproj
dotnet pack --no-build -o out Stardust/Stardust.csproj
dotnet pack --no-build -o out Stardust.Extensions/Stardust.Extensions.csproj
- name: Publish
run: |

View File

@ -11,8 +11,7 @@
<VersionSuffix>$([System.DateTime]::Now.ToString(`yyyy.MMdd`))</VersionSuffix>
<Version>$(VersionPrefix).$(VersionSuffix)</Version>
<FileVersion>$(Version)</FileVersion>
<AssemblyVersion>$(VersionPrefix).*</AssemblyVersion>
<Deterministic>false</Deterministic>
<AssemblyVersion>$(VersionPrefix).$([System.DateTime]::Now.ToString(`yyyy.MMdd`))</AssemblyVersion>
<OutputPath>..\Bin</OutputPath>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<ImplicitUsings>enable</ImplicitUsings>