Skip to content

Commit

Permalink
Copy resource files into output directory. (#126)
Browse files Browse the repository at this point in the history
This will make it easier to build locally and run OverlayPlugin out
of the `out/Release` or `out/Debug` directory.

For reference, the xcopy flags are:
* /d only copy newer files
* /e copy all subdirectories
* /i consider destination is a directory even if it doesn't exist
* /q only print a summary line
* /r copy read-only files (just in case)
* /h copy hidden/system files (just in case)
* /y prevent prompts for overwriting destination files

Fixes RainbowMage#52
  • Loading branch information
quisquous authored Oct 20, 2022
1 parent 31dad82 commit 269131a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions OverlayPlugin.Core/OverlayPlugin.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup>
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="Advanced Combat Tracker, Version=3.4.9.271, Culture=neutral, PublicKeyToken=a946b61e93d97868, processorArchitecture=x86">
<SpecificVersion>False</SpecificVersion>
Expand Down Expand Up @@ -533,8 +536,7 @@
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>
</PostBuildEvent>
<PostBuildEvent>xcopy /d /e /i /q /r /h /y $(ProjectDir)\resources $(TargetDir)\..\resources</PostBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand All @@ -543,4 +545,4 @@
<Target Name="AfterBuild">
</Target>
-->
</Project>
</Project>

0 comments on commit 269131a

Please sign in to comment.