diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-06-02 17:54:01 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-06-02 17:54:01 -0400 |
commit | b6cda8f0d32898f34b5c7dc703a85aa823c317ce (patch) | |
tree | 91d95583b6af5ce842a3d8208aacb225bdd822d6 /build/common.targets | |
parent | 2e3c42130358734a6fcf547745324dd272176f9c (diff) | |
parent | 9945408aa4ea2f6e07c2820f6aa1c160c68423d5 (diff) | |
download | SMAPI-b6cda8f0d32898f34b5c7dc703a85aa823c317ce.tar.gz SMAPI-b6cda8f0d32898f34b5c7dc703a85aa823c317ce.tar.bz2 SMAPI-b6cda8f0d32898f34b5c7dc703a85aa823c317ce.zip |
Merge branch 'create-toolkit' into develop
Diffstat (limited to 'build/common.targets')
-rw-r--r-- | build/common.targets | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/build/common.targets b/build/common.targets index b382ea54..099d7cc9 100644 --- a/build/common.targets +++ b/build/common.targets @@ -25,7 +25,7 @@ <!-- add common references --> <ItemGroup> - <Reference Condition="'$(OS)' == 'Windows_NT'" Include="System.Management" /> + <Reference Condition="'$(OS)' == 'Windows_NT' AND '$(MSBuildProjectName)' != 'StardewModdingAPI.Toolkit'" Include="System.Management" /> </ItemGroup> <!-- add game references--> @@ -111,6 +111,10 @@ <Copy SourceFiles="$(TargetDir)\$(TargetName).pdb" DestinationFolder="$(GamePath)\Mods\$(AssemblyName)" Condition="Exists('$(TargetDir)\$(TargetName).pdb')" /> <Copy SourceFiles="$(TargetDir)\manifest.json" DestinationFolder="$(GamePath)\Mods\$(AssemblyName)" /> </Target> + <Target Name="CopyToolkit" Condition="'$(MSBuildProjectName)' == 'StardewModdingAPI.Toolkit' AND '$(Configuration)' == 'Debug'" AfterTargets="PostBuildEvent"> + <Copy SourceFiles="$(TargetDir)\$(TargetName).dll" DestinationFolder="$(GamePath)" /> + <Copy SourceFiles="$(TargetDir)\$(TargetName).pdb" DestinationFolder="$(GamePath)" /> + </Target> <!-- launch SMAPI on debug --> <PropertyGroup Condition="$(Configuration) == 'Debug'"> |