Skip to content

Commit 141a153

Browse files
committed
Update to NuGet 5.3.1 and configure feeds
The default tool was even older than 4.4.1. For some reason, Azure Pipelines defaulted to changing the NuGet packages configuration even though the repository contains a NuGet.config. Update the NuGetCommand task to not use the invalid defaults it provided.
1 parent a1885f1 commit 141a153

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

azure-pipelines.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,17 @@ jobs:
1818
Release:
1919
BuildConfiguration: Release
2020
steps:
21+
- task: NuGetToolInstaller@0
22+
displayName: 'Use NuGet 5.3.1'
23+
inputs:
24+
versionSpec: 5.3.1
25+
2126
- task: NuGetCommand@2
2227
displayName: 'NuGet restore'
2328
inputs:
2429
restoreSolution: '$(BuildSolution)'
30+
feedsToUse: 'config'
31+
nugetConfigPath: '$(Build.WorkingDirectory)/NuGet.config'
2532

2633
- task: VSBuild@1
2734
displayName: 'Build solution StyleCopAnalyzers.sln'

0 commit comments

Comments
 (0)