Revert "Revert "Change build path of executables to output/dll but gooder""

This reverts commit f078709b6b.
This commit is contained in:
zeromus 2020-09-27 17:27:02 -04:00
parent cfbc148975
commit 9884c93fbf
2 changed files with 11 additions and 1 deletions

View File

@ -6,7 +6,7 @@
<DocumentationFile>$(ProjectDir)bin/doc_comments.xml</DocumentationFile>
<MSBuildWarningsAsMessages>NU1702</MSBuildWarningsAsMessages>
<NoWarn>CS1573;CS1591;NU1701</NoWarn>
<OutputPath>$(ProjectDir)../../output</OutputPath>
<OutputPath>$(ProjectDir)../../output/dll</OutputPath>
</PropertyGroup>
<ItemGroup>
<AdditionalFiles Include="$(ProjectDir)../../.stylecop.json" />

View File

@ -1,6 +1,7 @@
<Project>
<Import Project="MainSlnCommon.props" />
<PropertyGroup>
<OutputPath>$(ProjectDir)../../output</OutputPath>
<TargetName>$(MSBuildProjectName.Substring($([MSBuild]::Add($(MSBuildProjectName.LastIndexOf('.')), 1))))</TargetName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
@ -9,4 +10,13 @@
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<OutputType>WinExe</OutputType>
</PropertyGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<ItemGroup>
<NotExecFilesFromExecProj Include="$(OutputPath)*.deps.json" />
<NotExecFilesFromExecProj Include="$(OutputPath)*.dll" />
<NotExecFilesFromExecProj Include="$(OutputPath)*.pdb" />
<NotExecFilesFromExecProj Include="$(OutputPath)*.xml" />
</ItemGroup>
<Move Condition=" $(IsTargetingNetFramework) " SourceFiles="@(NotExecFilesFromExecProj)" DestinationFolder="$(OutputPath)dll/" />
</Target>
</Project>