VS: Fix target output paths in SDK-style projects

Set the `AppendTargetFrameworkToOutputPath` property to `false` so that
MSBuild does not append anything extra to our standard target output
paths. This fixes the `INSTALL` target, among other things.

Fixes: #23989
This commit is contained in:
elksson
2022-09-23 15:38:18 -04:00
committed by Alastair-Hunter Tyrel (AA-AS/PAE-ENG22)
parent 98aef0929f
commit 7671d71299

View File

@@ -903,6 +903,7 @@ void cmVisualStudio10TargetGenerator::WriteSdkStyleProjectFile(
// of the IDE.
e1.Element("VCProjectUpgraderObjectName", "NoUpgrade");
e1.Element("ManagedAssembly", "true");
e1.Element("AppendTargetFrameworkToOutputPath", "false");
cmValue targetFramework =
this->GeneratorTarget->GetProperty("DOTNET_TARGET_FRAMEWORK");