Skip to content

Commit

Permalink
Clean up how CopyBinariesToRepo gets called
Browse files Browse the repository at this point in the history
  • Loading branch information
drewcassidy committed Sep 6, 2024
1 parent af5e150 commit 6f61483
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions KSPCommon.targets
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,10 @@
<PackageReference Include="JsonPoke" Version="1.2.0" Condition="@(KSPVersionFile) != ''"/>
</ItemGroup>

<!-- Pre/post build targets -->
<Target Name="BeforeBuildScript" BeforeTargets="Build">
</Target>
<Target Name="PostBuildScript" AfterTargets="Build">
<CallTarget Targets="CopyBinariesToRepo"/>
</Target>

<!--Custom Targets-->

<!-- this probably isn't the best way to do this, because it doesn't necessarily get run when switching build configs (debug/release)-->
<!-- make sure to always do a rebuild when switching configs and you should be fine -->
<Target Name="CopyBinariesToRepo">
<!-- Copy output files to mod folder -->
<Target Name="CopyBinariesToRepo" AfterTargets="CopyFilesToOutputDirectory">
<ItemGroup>
<BinariesToCopy Include="$(TargetDir)/*.*"/>
</ItemGroup>
Expand Down

0 comments on commit 6f61483

Please sign in to comment.