diff --git a/.azure-pipelines/ci-build.yml b/.azure-pipelines/ci-build.yml index cb2182cab3e..672647cc473 100644 --- a/.azure-pipelines/ci-build.yml +++ b/.azure-pipelines/ci-build.yml @@ -62,11 +62,27 @@ extends: packageType: sdk version: 10.x + - task: NuGetAuthenticate@1 + displayName: 'Authenticate to Azure Artifacts' + + - pwsh: | + @" + + + + + + + + "@ | Set-Content -Path "$(Build.SourcesDirectory)/nuget.config" -Encoding UTF8 + displayName: 'Create nuget.config (central feed)' - task: DotNetCoreCLI@2 displayName: 'dotnet restore' inputs: command: restore projects: '**/*.csproj' + feedsToUse: "config" + nugetConfigPath: "$(Build.SourcesDirectory)/nuget.config" - powershell: | # This allows us to not have to checkin .csproj files with DelaySign and SignAssembly set to to true. If the flag is set, # then project is not debuggable with SignAssembly set to true.