Skip to content

Commit ad2e47d

Browse files
committed
Added -p:Version to build
1 parent 3cb8091 commit ad2e47d

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/_build-test.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ jobs:
7878
restore-keys: nugetpackages-${{ runner.os }}
7979

8080
- name: Restore project dependencies
81-
run: dotnet restore $SOLUTION_FILE
81+
run: dotnet restore $SOLUTION_FILE -p:Version=${{ steps.gitversion.outputs.nuGetVersion }}
8282

8383
- name: Build all projects in the solution
84-
run: dotnet build $SOLUTION_FILE --configuration $CONFIGURATION --no-restore
85-
84+
run: dotnet build $SOLUTION_FILE --configuration $CONFIGURATION -p:Version=${{ steps.gitversion.outputs.nuGetVersion }} --no-restore
85+
8686
# The xUnit test project template already integrates with coverlet.collector by default
8787
# Don't use the '--logger trx' option as it causes duplicate folders and xml files to be created
8888
- name: Test all projects in the solution

.github/workflows/_build.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ jobs:
2323
SOURCE: "source"
2424
SENDER: "${{ inputs.project-name }}.Sender"
2525
RECEIVER: "${{ inputs.project-name }}.Receiver"
26-
NET_VERSION: '8.x'
2726

2827
outputs:
2928
artifact: ${{ env.SOURCE }} # -${{ matrix.runs-on }}
@@ -33,7 +32,7 @@ jobs:
3332
uses: actions/checkout@v4
3433

3534
# https://github.com/actions/setup-dotnet
36-
- name: Get .NET ${{ env.NET_VERSION }} externals
35+
- name: Get .NET externals
3736
uses: actions/setup-dotnet@v4
3837
with:
3938
dotnet-version: |

0 commit comments

Comments
 (0)