The installation process is only briefely explained in the docs as git clone, bootstrap-vcpkg.bat and, optionally, vcpkg integrate install.
This is fine for default setup, but there is more details that really need to be covered in the documentation.
Some of obvious questions"
vcpkg.exe anywhere?vcpkg.exe anywhere (eg. c:\bin\vcpkg.exe which I have in PATH) or it has to stick to location where it was bootstrapped?vcpkg.exe downloads/installs packages in?{vcpkg}\buildtrees directory for?{vcpkg}\installed directory for?{vcpkg}\downloads directory for?{vcpkg}\packages directory for?vcpkg.exe was bootstrapped and location where packages are installed?C:\vcpkg-1\vcpkg.exe and C:\vcpkg-2\vcpkg.exe, do I maintain two sets of packages (two installation prefixes, in Unix speak)C:\vcpkg-1\vcpkg.exe is user-wide integratedC:\vcpkg-2\vcpkg.exe is used via the CMake toolchain file onlySo far, user has to fish for (correct?) answers in the issues archive and compile the information from scraps, hoping the bigger picture generated is correct.
For example, https://github.com/Microsoft/vcpkg/issues/1681#issuecomment-324160402 suggests to clone a second copy...
Thanks for the questions!
First, to directly answer them:
vcpkg.exe anywhere?vcpkg.exe anywhere (eg. c:\bin\vcpkg.exe which I have in PATH) or it has to stick to location where it was bootstrapped?vcpkg.exe downloads/installs packages in?{vcpkg}\buildtrees directory for?{vcpkg}\installed directory for?{vcpkg}\downloads directory for?{vcpkg}\packages directory for?vcpkg.exe was bootstrapped and location where packages are installed?vcpkg help), then current working directory, then current executable directory. In both of the directory cases, we search up for the .vcpkg-root stamp file (like git) to determine the true root._C:\vcpkg-1\vcpkg.exe and C:\vcpkg-2\vcpkg.exe, do I maintain two sets of packages (two installation prefixes, in Unix speak)export command which can be used to produce standalone archives of binaries that can be individually integrated._C:\vcpkg-1\vcpkg.exe is user-wide integratedC:\vcpkg-2\vcpkg.exe is used via the CMake toolchain file only@ras0219-msft This is excellent, thank you!
I think this could be copied verbatim into new "Installation" section in the FAQ :)
Most helpful comment
@ras0219-msft This is excellent, thank you!
I think this could be copied verbatim into new "Installation" section in the FAQ :)