mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 13:31:48 +08:00
[vcpkg-integrate-project] Escape backticks. Fixes #964.
This commit is contained in:
parent
75cdbd398b
commit
e48fdb66a5
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user