Setting OutputPath
in the new Visual Studio 2017 project format automatically adds the target framework in the path. For example, if I have these set in the project file:
<TargetFramework>net462</TargetFramework>
<OutputPath>/build/debug/<OutputPath>
The actual output folder will resolve to /build/debug/net462/
, not /build/debug/
like in the older versions. How do I solve this without workarounds like moving things around with post build actions?
The solution is to use AppendTargetFrameworkToOutputPath
https://www.tabsoverspaces.com/233608-stopping-msbuild-appending-targetframework-to-outputpath/
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments