-
Hi everyone, I just saw that vcpkg installs its own nuget.exe under "downloads/tools/nuget_VERSION/" and I would like to use this instead of relying on developers (and the build server) having a nuget.exe installed localy and adapting the CMakeUserPresets.json to point to the installed folder. How do I reference the vcpkg installed nuget.exe from my CMake scripts? I thought about using "$env{VCPKG_DOWNLOADS}/tools/.../nuget.exe" but that would require me to hardcode the version in the path (e.g. /tools/nuget-6.10.0-windows). I would just like to have a reference to whatever the installed nuget.exe is. Is this possible or would it require changes to vpckg, i.e. adding a new environment variable or some other plumbing? Or I should just use CMake globbing functions to get a path to the nuget.exe? 🤨 Thank you for your help |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Posting a comment from @BillyONeal: You can try running |
Beta Was this translation helpful? Give feedback.
Posting a comment from @BillyONeal: You can try running
vcpkg fetch nuget
to get the copy of nuget.exe vcpkg uses, but that is an internal and undocumented vcpkg command and it could be subject to breaking changes in the future if we ever need to modify its behavior.