summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2016-12-05 02:14:25 -0500
committerJesse Plamondon-Willard <github@jplamondonw.com>2016-12-05 02:14:25 -0500
commit31301988e97a9460ea2cb4898eb263a4e6c297d2 (patch)
tree737737c5dcda3209ab55c7c8bc2ae67b33812ae8
parentaaf354761f18a18b0bcb81c9bd32819bb28deac9 (diff)
downloadSMAPI-31301988e97a9460ea2cb4898eb263a4e6c297d2.tar.gz
SMAPI-31301988e97a9460ea2cb4898eb263a4e6c297d2.tar.bz2
SMAPI-31301988e97a9460ea2cb4898eb263a4e6c297d2.zip
deploy trainer mod when building SMAPI in debug mode
-rw-r--r--src/TrainerMod/TrainerMod.csproj6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/TrainerMod/TrainerMod.csproj b/src/TrainerMod/TrainerMod.csproj
index 229e6b4d..6d8b5f34 100644
--- a/src/TrainerMod/TrainerMod.csproj
+++ b/src/TrainerMod/TrainerMod.csproj
@@ -127,4 +127,10 @@
<!-- if game path is invalid, show one user-friendly error instead of a slew of reference errors -->
<Error Condition="!Exists('$(GamePath)')" Text="Failed to find the game install path automatically; edit the *.csproj file and manually add a &lt;GamePath&gt; setting with the full directory path containing the Stardew Valley executable." />
</Target>
+ <Target Name="AfterBuild" Condition="$(Configuration) == 'Debug'">
+ <Copy SourceFiles="$(TargetDir)\$(TargetName).dll" DestinationFolder="$(GamePath)\Mods\TrainerMod" />
+ <Copy SourceFiles="$(TargetDir)\$(TargetName).dll.mdb" DestinationFolder="$(GamePath)\Mods\TrainerMod" Condition="$(OS) != 'Windows_NT'" />
+ <Copy SourceFiles="$(TargetDir)\$(TargetName).pdb" DestinationFolder="$(GamePath)\Mods\TrainerMod" Condition="$(OS) == 'Windows_NT'" />
+ <Copy SourceFiles="$(TargetDir)\manifest.json" DestinationFolder="$(GamePath)\Mods\TrainerMod" />
+ </Target>
</Project> \ No newline at end of file