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

View File

@ -1,6 +1,7 @@
<Project> <Project>
<Import Project="MainSlnCommon.props" /> <Import Project="MainSlnCommon.props" />
<PropertyGroup> <PropertyGroup>
<OutputPath>$(ProjectDir)../../output</OutputPath>
<TargetName>$(MSBuildProjectName.Substring($([MSBuild]::Add($(MSBuildProjectName.LastIndexOf('.')), 1))))</TargetName> <TargetName>$(MSBuildProjectName.Substring($([MSBuild]::Add($(MSBuildProjectName.LastIndexOf('.')), 1))))</TargetName>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> <PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
@ -9,4 +10,13 @@
<PropertyGroup Condition=" '$(Configuration)' == 'Release' "> <PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<OutputType>WinExe</OutputType> <OutputType>WinExe</OutputType>
</PropertyGroup> </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> </Project>