加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Common.Build.props 2.29 KB
一键复制 编辑 原始数据 按行查看 历史
写代码的厨子 提交于 2023-12-18 11:08 . Initial
<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(&quot;$(MSBuildThisFileDirectory)Output\bin\$(Configuration)\Toolkits&quot;,&quot;$(MSBuildProjectName)_*_wpftmp&quot;))" />
<WpfTempDirectories Include="$([System.IO.Directory]::GetDirectories(&quot;$(MSBuildThisFileDirectory)Output\bin\$(Configuration)\UIs&quot;,&quot;$(MSBuildProjectName)_*_wpftmp&quot;))" />
<WpfTempDirectories Include="$([System.IO.Directory]::GetDirectories(&quot;$(MSBuildThisFileDirectory)Output\bin\$(Configuration)\UnitTests&quot;,&quot;$(MSBuildProjectName)_*_wpftmp&quot;))" />
<WpfTempDirectories Include="$([System.IO.Directory]::GetDirectories(&quot;$(MSBuildThisFileDirectory)Output\bin\$(Configuration)\Demos&quot;,&quot;$(MSBuildProjectName)_*_wpftmp&quot;))" />
</ItemGroup>
<RemoveDir Directories="@(WpfTempDirectories)" />
</Target>
<!--<Target Name="RemoveWpfTempFolder" AfterTargets="PostBuildEvent">
<Exec Command="FOR /D %%G in (&quot;$(MSBuildThisFileDirectory)Output\bin\$(Configuration)\*_*_wpftmp&quot;) DO RMDIR /S /Q &quot;%%~G&quot;" />
</Target>-->
</Project>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化