diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-04-23 00:26:04 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2017-04-23 00:29:40 -0700 |
| commit | e48fdb66a5be01321e68b371c6c171ed0fec3054 (patch) | |
| tree | 337d110dc9c6652c7bf3cf25af63d903e38b922f /toolsrc/src/commands_integrate.cpp | |
| parent | 75cdbd398b18b413d55cf76a7286b3681ea0806f (diff) | |
| download | vcpkg-e48fdb66a5be01321e68b371c6c171ed0fec3054.tar.gz vcpkg-e48fdb66a5be01321e68b371c6c171ed0fec3054.zip | |
[vcpkg-integrate-project] Escape backticks. Fixes #964.
Diffstat (limited to 'toolsrc/src/commands_integrate.cpp')
| -rw-r--r-- | toolsrc/src/commands_integrate.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/toolsrc/src/commands_integrate.cpp b/toolsrc/src/commands_integrate.cpp index 6d41c3680..9b036b928 100644 --- a/toolsrc/src/commands_integrate.cpp +++ b/toolsrc/src/commands_integrate.cpp @@ -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); } |
