Skip to content

Commit 20801cb

Browse files
committed
use DotNetCoreCLI@2 task for restore
1 parent b9a0d16 commit 20801cb

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

eng/build.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,17 @@ steps:
1515
New-Item -ItemType Directory -Path artifacts/package/release -Force
1616
displayName: create folder artifacts/package/$(BuildConfiguration)
1717

18-
- script: dotnet restore
18+
# Authenticate Azure DevOps NuGet feed
19+
- task: NuGetAuthenticate@1
20+
displayName: 'Authenticate Azure DevOps NuGet feed'
21+
22+
- task: DotNetCoreCLI@2
1923
displayName: Restore packages
24+
inputs:
25+
command: restore
26+
projects: 'coverlet.sln'
27+
feedsToUse: 'config'
28+
nugetConfigPath: 'nuget.config'
2029

2130
- script: dotnet build -c $(BuildConfiguration) --no-restore -bl:build.msbuild.binlog
2231
displayName: Build

0 commit comments

Comments
 (0)