Add message when downloading cmake/git/nuget
MODIFY
src/VcpkgPaths.cpp
src/VcpkgPaths.cpp
@@ -67,14 +67,18 @@ namespace vcpkg
const fs::path& expected_downloaded_path,
const std::array<int, 3>& version)
{
+ const std::string version_as_string = Strings::format("%d.%d.%d", version[0], version[1], version[2]);
+ System::println("A suitable version of %s was not found (required v%s). Downloading portable %s v%s...",
+ Strings::to_utf8(tool_name),
+ version_as_string,
+ Strings::to_utf8(tool_name),
+ version_as_string);
const fs::path script = scripts_folder / "fetchDependency.ps1";
const auto install_cmd =
System::create_powershell_script_cmd(script, Strings::wformat(L"-Dependency %s", tool_name));
const System::ExitCodeAndOutput rc = System::cmd_execute_and_capture_output(install_cmd);
if (rc.exit_code)
{
- const std::string version_as_string = Strings::format("%d.%d.%d", version[0], version[1], version[2]);
-
System::println(System::Color::error,
"Launching powershell failed or was denied when trying to fetch %s version %s.\n"
"(No sufficient installed version was found)",

Add message when downloading cmake/git/nuget