VS: add missing label in C# project-build events

This commit is contained in:
Steven Boswell
2021-12-15 11:11:48 -07:00
parent cd6b084407
commit dff98aa9ca
4 changed files with 46 additions and 1 deletions

View File

@@ -243,3 +243,20 @@ std::string cmLocalVisualStudioGenerator::ConstructScript(
return script;
}
std::string cmLocalVisualStudioGenerator::FinishConstructScript(
IsManaged isManaged, const std::string& newline)
{
bool useLocal = this->CustomCommandUseLocal();
// Store the script in a string.
std::string script;
if (useLocal && isManaged == IsManaged::Yes) {
// These aren't generated by default for C# projects.
script += newline;
script += this->GetReportErrorLabel();
}
return script;
}