Skip to content

Commit

Permalink
Replace --output flag with /p:PublishDir
Browse files Browse the repository at this point in the history
This fixes publish failing with the error `error NETSDK1194: The "--output" option isn't supported when building a solution.`

The `--output` flag has been deprecated, the recommended approach is to use `/p:PublishDir=..` instead.
Reference: dotnet/performance#2774
  • Loading branch information
NielsPilgaard committed Feb 16, 2023
1 parent 31b3095 commit 5f606de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ jobs:
- name: Dotnet Pack
shell: bash
run: |
dotnet pack /p:Version=${{ steps.get_version.outputs.version }} --configuration=Release --output=./packages \
dotnet pack /p:Version=${{ steps.get_version.outputs.version }} --configuration=Release \
/p:PublishDir=./packages
/p:NoWarn=NU5105 \
/p:RepositoryUrl=https://github.com/EventStore/EventStore-Client-Dotnet \
/p:RepositoryType=git
Expand Down

0 comments on commit 5f606de

Please sign in to comment.