Describe the bug
Binary caching with nuget fails when attempting to upload package to Azure DevOps Artifacts feed.
Environment
- OS: Windows 10
- Compiler: MSVC 19.28.29334.0
- VCPKG 2020.11-1
To Reproduce
Steps to reproduce the behavior:
- $env:VCPKG_BINARY_SOURCES='clear;nuget,https://pkgs.dev.azure.com/.../v3/index.json,readwrite;interactive'
- vcpkg install --triplet x64-windows-static --x-manifest-root C:\Temp\Test --debug
- See error
Repro code when
Expected behavior
New nuget package should be uploaded to Azure DevOps artifact feed
Failure logs
Response status code does not indicate success: 400 (Bad Request - The request to the server did not include the header X-NuGet-ApiKey, but it is required even though credentials were provided. If using NuGet.exe, use the -ApiKey option to set this to an arbitrary value, for example "-ApiKey AzureDevOps"
The workaround provided in the comment below fixes the problem;
https://devblogs.microsoft.com/cppblog/vcpkg-accelerate-your-team-development-environment-with-binary-caching-and-manifests/#comment-1403
Describe the bug
Binary caching with nuget fails when attempting to upload package to Azure DevOps Artifacts feed.
Environment
To Reproduce
Steps to reproduce the behavior:
Repro code when
Expected behavior
New nuget package should be uploaded to Azure DevOps artifact feed
Failure logs
Response status code does not indicate success: 400 (Bad Request - The request to the server did not include the header X-NuGet-ApiKey, but it is required even though credentials were provided. If using NuGet.exe, use the -ApiKey option to set this to an arbitrary value, for example "-ApiKey AzureDevOps"
The workaround provided in the comment below fixes the problem;
https://devblogs.microsoft.com/cppblog/vcpkg-accelerate-your-team-development-environment-with-binary-caching-and-manifests/#comment-1403