优化复制到当前主程序输出目录

This commit is contained in:
zhengxuan.zhang
2026-06-05 13:56:33 +08:00
parent b3d78fe0b0
commit a5397ba752
@@ -102,9 +102,9 @@
<Content Include="Comet.Host.Icon.ico" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- 编译后将 Host 进程及其所有依赖复制到 XP.App 主程序输出目录的 Host 子目录 -->
<!-- 编译后将 Host 进程及其所有依赖复制到当前主程序输出目录的 Host 子目录 -->
<PropertyGroup>
<PostBuildEvent>if not exist "$(SolutionDir)XP.App\bin\$(ConfigurationName)\net8.0-windows7.0\Host\" mkdir "$(SolutionDir)XP.App\bin\$(ConfigurationName)\net8.0-windows7.0\Host\"
xcopy /Y /D "$(TargetDir)*.*" "$(SolutionDir)XP.App\bin\$(ConfigurationName)\net8.0-windows7.0\Host\"</PostBuildEvent>
<PostBuildEvent>if not exist "$(SolutionDir)bin\$(ConfigurationName)\net8.0-windows\win-x64\Host\" mkdir "$(SolutionDir)bin\$(ConfigurationName)\net8.0-windows\win-x64\Host\"
xcopy /Y /D "$(TargetDir)*.*" "$(SolutionDir)bin\$(ConfigurationName)\net8.0-windows\win-x64\Host\"</PostBuildEvent>
</PropertyGroup>
</Project>