-
Notifications
You must be signed in to change notification settings - Fork 0
/
Common.Build.props
29 lines (26 loc) · 2.29 KB
/
Common.Build.props
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<Project>
<PropertyGroup>
<OutputPath Condition="$(MSBuildProjectName.Contains('Toolkit'))">$(MSBuildThisFileDirectory)Output\bin\$(Configuration)\Toolkits\$(MSBuildProjectName)</OutputPath>
<OutputPath Condition="$(MSBuildProjectName.Contains('UI'))">$(MSBuildThisFileDirectory)Output\bin\$(Configuration)\UIs\$(MSBuildProjectName)</OutputPath>
<OutputPath Condition="$(MSBuildProjectName.Contains('UnitTest'))">$(MSBuildThisFileDirectory)Output\bin\$(Configuration)\UnitTests\$(MSBuildProjectName)</OutputPath>
<OutputPath Condition="$(MSBuildProjectName.Contains('Demo'))">$(MSBuildThisFileDirectory)Output\bin\$(Configuration)\Demos\$(MSBuildProjectName)</OutputPath>
<BaseIntermediateOutputPath>$(MSBuildThisFileDirectory)Output\obj\$(Configuration)\$(MSBuildProjectName)</BaseIntermediateOutputPath>
<!--<IntermediateOutputPath>$(SolutionDir)Output\obj\$(Configuration)\$(MSBuildProjectName)</IntermediateOutputPath>-->
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DebugType>none</DebugType>
<DebugSymbols>false</DebugSymbols>
</PropertyGroup>
<Target Name="RemoveWpfTempFolder" AfterTargets="Build">
<ItemGroup>
<WpfTempDirectories Include="$([System.IO.Directory]::GetDirectories("$(MSBuildThisFileDirectory)Output\bin\$(Configuration)\Toolkits","$(MSBuildProjectName)_*_wpftmp"))" />
<WpfTempDirectories Include="$([System.IO.Directory]::GetDirectories("$(MSBuildThisFileDirectory)Output\bin\$(Configuration)\UIs","$(MSBuildProjectName)_*_wpftmp"))" />
<WpfTempDirectories Include="$([System.IO.Directory]::GetDirectories("$(MSBuildThisFileDirectory)Output\bin\$(Configuration)\UnitTests","$(MSBuildProjectName)_*_wpftmp"))" />
<WpfTempDirectories Include="$([System.IO.Directory]::GetDirectories("$(MSBuildThisFileDirectory)Output\bin\$(Configuration)\Demos","$(MSBuildProjectName)_*_wpftmp"))" />
</ItemGroup>
<RemoveDir Directories="@(WpfTempDirectories)" />
</Target>
<!--<Target Name="RemoveWpfTempFolder" AfterTargets="PostBuildEvent">
<Exec Command="FOR /D %%G in ("$(MSBuildThisFileDirectory)Output\bin\$(Configuration)\*_*_wpftmp") DO RMDIR /S /Q "%%~G"" />
</Target>-->
</Project>