msbuild outputs compiled artifacts to bin/Release/
and obj/Release
when I've specified the output path as bin/
. I'm trying to perform this build in CI so I'm using this command `
msbuild.exe /nologo /p:Configuration=Release
`
The .csproj file for this project contains this entry
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\</OutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
I manually added the OutputPath
.
After looking around SO, I tried adding the AppendTargetFrameworkToOutputPath
and AppendRuntimeIdentifierToOutputPath
keys but didn't seem to help. What option do I need to stop the "Release" directory from being appended to output path?