mirror of
https://github.com/Kitware/CMake.git
synced 2026-07-25 00:36:19 +00:00
VS: Allow setting output directory in .NET SDK style projects
This commit is contained in:
@@ -926,6 +926,17 @@ void cmVisualStudio10TargetGenerator::WriteSdkStyleProjectFile(
|
|||||||
e1.Element("OutputType", outputType);
|
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->WriteDotNetDocumentationFile(e0);
|
||||||
this->WriteAllSources(e0);
|
this->WriteAllSources(e0);
|
||||||
this->WritePackageReferences(e0);
|
this->WritePackageReferences(e0);
|
||||||
|
|||||||
Reference in New Issue
Block a user