VS: Allow setting output directory in .NET SDK style projects

This commit is contained in:
Florian Schweiger
2022-02-02 17:58:49 +01:00
parent ece32491ab
commit f7791698cb

View File

@@ -926,6 +926,17 @@ void cmVisualStudio10TargetGenerator::WriteSdkStyleProjectFile(
e1.Element("OutputType", outputType);
}
for (const std::string& config : this->Configurations) {
Elem e1(e0, "PropertyGroup");
e1.Attribute("Condition", "'$(Configuration)' == '" + config + "'");
e1.SetHasElements();
this->WriteEvents(e1, config);
std::string outDir = this->GeneratorTarget->GetDirectory(config) + "/";
ConvertToWindowsSlash(outDir);
e1.Element("OutputPath", outDir);
}
this->WriteDotNetDocumentationFile(e0);
this->WriteAllSources(e0);
this->WritePackageReferences(e0);