Skip to content

Commit

Permalink
v2.5 减少输出目标,加快编译速度,避免不同目标输出的版本不同
Browse files Browse the repository at this point in the history
  • Loading branch information
nnhy committed Oct 31, 2023
1 parent 4ce02c3 commit 14c32b6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 16 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/publish-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,9 @@ jobs:
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Get Version
run: echo "VERSION=$(date '+%Y.%m%d-beta%H%M')" >> $GITHUB_ENV
- name: Build
run: |
dotnet build -c Release --version-suffix ${{ env.VERSION }}
- name: Pack
run: |
dotnet pack --no-build --version-suffix ${{ env.VERSION }} -o out NewLife.Remoting/NewLife.Remoting.csproj
dotnet pack --version-suffix $(date "+%Y.%m%d-beta%H%M") -c Release -o out NewLife.Remoting/NewLife.Remoting.csproj
- name: Publish
run: |
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,9 @@ 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 }}
- name: Pack
run: |
dotnet pack --no-build --version-suffix ${{ env.VERSION }} -o out NewLife.Remoting/NewLife.Remoting.csproj
dotnet pack -c Release -o out NewLife.Remoting/NewLife.Remoting.csproj
- name: Publish
run: |
Expand Down
7 changes: 3 additions & 4 deletions NewLife.Remoting/NewLife.Remoting.csproj
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net45;net461;netstandard2.0;netstandard2.1</TargetFrameworks>
<TargetFrameworks>net45;netstandard2.0</TargetFrameworks>
<AssemblyTitle>RPC远程过程调用</AssemblyTitle>
<Description>RPC远程过程调用,二进制封装,提供高吞吐低延迟的高性能RPC框架</Description>
<Company>新生命开发团队</Company>
<Copyright>©2002-2023 新生命开发团队</Copyright>
<VersionPrefix>2.4</VersionPrefix>
<VersionPrefix>2.5</VersionPrefix>
<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>
<Nullable>enable</Nullable>
Expand Down

0 comments on commit 14c32b6

Please sign in to comment.