Skip to content

Commit ed7fa18

Browse files
Copilotvslee
andauthored
Fix Azure Pipeline NuGet package generation (#884)
* Initial plan * Fix Azure Pipeline: Use dotnet pack to generate NuGet package Co-authored-by: vslee <366757+vslee@users.noreply.github.com> * Fix DotNetCoreCLI pack task parameters: use outputDir instead of packDirectory Co-authored-by: vslee <366757+vslee@users.noreply.github.com> * Consolidate pack configuration into arguments parameter Co-authored-by: vslee <366757+vslee@users.noreply.github.com> * Replace NuGetCommand with DotNetCoreCLI push to fix Ubuntu 24.04 mono issue Co-authored-by: vslee <366757+vslee@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: vslee <366757+vslee@users.noreply.github.com>
1 parent b933ad9 commit ed7fa18

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

azure-pipelines.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ jobs:
5656
command: 'restore'
5757
projects: 'src/ExchangeSharp/ExchangeSharp.csproj'
5858
- task: DotNetCoreCLI@2
59-
displayName: 'Build lib+console'
59+
displayName: 'Build'
6060
inputs:
6161
command: 'build'
6262
projects: 'src/ExchangeSharp/ExchangeSharp.csproj'
63-
arguments: '--configuration $(BuildConfiguration) --version-suffix prerelease-$(PipelineDate) --output $(Build.ArtifactStagingDirectory)'
63+
arguments: '--configuration $(BuildConfiguration)'
6464
#- task: DotNetCoreCLI@2
6565
# displayName: 'Tests'
6666
# inputs:
@@ -69,21 +69,21 @@ jobs:
6969
# projects: 'tests/*/*.csproj'
7070
# publishTestResults: true
7171
# testRunTitle: 'All tests'
72-
#- task: DotNetCoreCLI@2
73-
# displayName: 'NuGet Pack'
74-
# inputs:
75-
# command: pack
76-
# packagesToPack: 'src/ExchangeSharp/ExchangeSharp.csproj'
77-
# packDestination: '$(Build.ArtifactStagingDirectory)'
78-
# versioningScheme: off
79-
- task: NuGetToolInstaller@1
72+
- task: DotNetCoreCLI@2
73+
displayName: 'NuGet Pack'
74+
inputs:
75+
command: pack
76+
packagesToPack: 'src/ExchangeSharp/ExchangeSharp.csproj'
77+
outputDir: '$(Build.ArtifactStagingDirectory)'
78+
arguments: '--configuration $(BuildConfiguration) --version-suffix prerelease-$(PipelineDate) --no-build'
8079
- task: NuGetAuthenticate@0
8180
displayName: 'NuGet Authenticate'
82-
- task: NuGetCommand@2
81+
- task: DotNetCoreCLI@2
8382
displayName: 'NuGet push'
8483
inputs:
8584
command: push
8685
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'
86+
nuGetFeedType: internal
8787
publishVstsFeed: DigitalRuby/DigitalRuby
8888
- job: build_tag
8989
displayName: Build console app

0 commit comments

Comments
 (0)