-
Notifications
You must be signed in to change notification settings - Fork 2
/
CookPopularInstaller.props
28 lines (25 loc) · 1.5 KB
/
CookPopularInstaller.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
<Project>
<PropertyGroup>
<!--统一解决方案所有项目的输出目录-->
<OutputPath>$(MSBuildThisFileDirectory)\Output\bin\$(Configuration)\$(Platform)\$(MSBuildProjectName)</OutputPath>
<!--统一所有项目的中间文件输出目录-->
<BaseIntermediateOutputPath>$(MSBuildThisFileDirectory)\Output\obj\$(Configuration)\$(Platform)\$(MSBuildProjectName)</BaseIntermediateOutputPath>
<!--<IntermediateOutputPath>$(SolutionDir)Output\$(SolutionName)\obj\$(Configuration)\$(MSBuildProjectName)</IntermediateOutputPath>-->
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DebugType>none</DebugType>
<DebugSymbols>false</DebugSymbols>
<RuntimeIdentifier>win-x86</RuntimeIdentifier>
</PropertyGroup>
<!--删除生成的临时目录-->
<Target Name="RemoveWpfTempFolder" AfterTargets="Build">
<ItemGroup>
<WpfTemDirectories Include="$([System.IO.Directory]::GetDirectories("$(MSBuildThisFileDirectory)Output\bin\$(Configuration)\$(Platform)","$(MSBuildProjectName)_*_wpftmp",SearchOption.AllDirectories))"/>
</ItemGroup>
<RemoveDir Directories="@(WpfTemDirectories)" ContinueOnError="true"/>
</Target>
<!--删除生成的临时目录-->
<!--<Target Name="RemoveWpfTempFolder" AfterTargets="PostBuildEvent">
<Exec Command="FOR /D %%G in ("$(MSBuildThisFileDirectory)Output\$(SolutionName)\bin\$(Configuration)\*_*_wpftmp") DO RMDIR /S /Q "%%~G"" />
</Target>-->
</Project>