diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c62c5dc734..5ed6b57dbc 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -20,6 +20,7 @@ pool: variables: solution: 'src\AppInstallerCLI.sln' EnableDetectorVcpkg: true + VCPKG_BINARY_SOURCES: "clear;nuget,https://pkgs.dev.azure.com/shine-oss/winget-cli/_packaging/WinGetDependencies/nuget/v3/index.json,readwrite" # Do not set the build version for a PR build. @@ -67,6 +68,9 @@ jobs: - task: NuGetToolInstaller@1 displayName: Install Nuget + - task: NuGetAuthenticate@1 + displayName: 'Authenticate to NuGet Feed' + # Restores all projects, including native (vcxproj) projects - task: NuGetCommand@2 displayName: Restore Solution @@ -640,6 +644,9 @@ jobs: - task: NuGetToolInstaller@1 displayName: Install Nuget + - task: NuGetAuthenticate@1 + displayName: 'Authenticate to NuGet Feed' + - task: NuGetCommand@2 displayName: Restore Solution inputs: