Skip to content

Commit 2e2b7f2

Browse files
committed
Don't use AzDO DotNetCoreCli for restore
Per NuGet/Home#11406 this causes issues where the feed gets renamed, breaking package source mappings.
1 parent ee89652 commit 2e2b7f2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

azure-pipelines/build.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ steps:
1111
- script: dotnet --info
1212
displayName: Show dotnet SDK info
1313

14-
- task: DotNetCoreCLI@2
15-
displayName: Restore
14+
- task: NuGetAuthenticate@1
15+
displayName: 'Authenticate with NuGet'
16+
17+
- task: PowerShell@2
18+
displayName: 'dotnet restore'
1619
inputs:
17-
command: restore
18-
verbosityRestore: normal # detailed, normal, minimal
19-
projects: LibraryManager.sln
20-
feedsToUse: config
21-
nugetConfigPath: nuget.config
20+
targetType: 'inline'
21+
script: 'dotnet restore --nologo'
2222

2323
- task: MSBuild@1
2424
inputs:

0 commit comments

Comments
 (0)