[vcpkg] Introduce experimental workaround X_VCPKG_NUGET_ID_PREFIX #40
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR introduces an experimental workaround for the problem described in microsoft/vcpkg#16579 by enabling a prefix to be added to all binary cached NuGet package ids. This enables multiple projects using the same NuGet feed to "see" a completely independent universe of cached packages and prevents all collisions.
To activate the workaround, simply set the environment variable
X_VCPKG_NUGET_ID_PREFIX
to a non-empty string. Package IDs will then be constructed as<prefix>_<port>_<triplet>
instead of the default<port>_<triplet>
.@PazerOP I'd greatly appreciate it if you could try out this PR and confirm that it solves your issue. You will need to build the tool from source, which can be done by cloning this repo and using standard cmake.