[vcpkg-integrate-project] Escape backticks. Fixes #964.

This commit is contained in:
Robert Schumacher 2017-04-23 00:26:04 -07:00
parent 75cdbd398b
commit e48fdb66a5

View File

@ -277,10 +277,13 @@ namespace vcpkg::Commands::Integrate
Checks::check_exit(VCPKG_LINE_INFO, exit_code == 0 && fs.exists(nuget_package), "Error: NuGet package creation failed");
System::println(System::Color::success, "Created nupkg: %s", nuget_package.string());
auto source_path = buildsystems_dir.u8string();
source_path = std::regex_replace(source_path, std::regex("`"), "``");
System::println(R"(
With a project open, go to Tools->NuGet Package Manager->Package Manager Console and paste:
Install-Package %s -Source "%s"
)", nuget_id, buildsystems_dir.generic_string());
)", nuget_id, source_path);
Checks::exit_success(VCPKG_LINE_INFO);
}