c++visual-studio-2015nuget-packagecpprest-sdkvcpkg

What is the best way to use vcpkg to share your project with a friend


I have a project which depends on cpprestsdk, tinyxml2. I run this project on another computer which has no internet connection, I installed these libraries with vcpkg, I was wondering should I statically link these libraries to my solution or use the new export command and create a nuget package and install it on my friend's computer.

Edit: I want to say that I don't need to run the generated .exe file, I want to take the whole visual studio solution.


Solution

  • If you want to take the whole VS solution over, the easiest way to get started is to export a NuGet package.

    Later on, if you want to update the dependencies or install new ones, you can always transition to a full Vcpkg instance by removing the NuGet package from the solution.