summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-08-14 08:22:50 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-08-14 08:22:50 -0400
commit72d42ddff8be9bce4e9ab6a1ac04b9cc26deb42f (patch)
treec3f2dcb74f72ee410ec74464f64017c1b549c0ab /src/StardewModdingAPI
parentc47e43a1e92cc8389ef06bd800251fbe0458fb76 (diff)
downloadSMAPI-72d42ddff8be9bce4e9ab6a1ac04b9cc26deb42f.tar.gz
SMAPI-72d42ddff8be9bce4e9ab6a1ac04b9cc26deb42f.tar.bz2
SMAPI-72d42ddff8be9bce4e9ab6a1ac04b9cc26deb42f.zip
move custom build configuration into common.targets to simplify maintenance
Diffstat (limited to 'src/StardewModdingAPI')
-rw-r--r--src/StardewModdingAPI/StardewModdingAPI.csproj30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/StardewModdingAPI/StardewModdingAPI.csproj b/src/StardewModdingAPI/StardewModdingAPI.csproj
index ee03aea2..6691b2b5 100644
--- a/src/StardewModdingAPI/StardewModdingAPI.csproj
+++ b/src/StardewModdingAPI/StardewModdingAPI.csproj
@@ -261,34 +261,4 @@
</ItemGroup>
<Import Project="$(SolutionDir)\common.targets" />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
- <PropertyGroup>
- <PostBuildEvent>
- </PostBuildEvent>
- </PropertyGroup>
- <!-- if game path is invalid, show one user-friendly error instead of a slew of reference errors -->
- <Target Name="BeforeBuild">
- <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>
-
- <!-- copy files into game directory and enable debugging (only in debug mode) -->
- <Target Name="AfterBuild" Condition="$(Configuration) == 'Debug'">
- <Copy SourceFiles="$(TargetDir)\$(TargetName).exe" DestinationFolder="$(GamePath)" />
- <Copy SourceFiles="$(TargetDir)\$(TargetName).config.json" DestinationFolder="$(GamePath)" />
- <Copy SourceFiles="$(TargetDir)\StardewModdingAPI.AssemblyRewriters.dll" DestinationFolder="$(GamePath)" />
- <Copy SourceFiles="$(TargetDir)\$(TargetName).pdb" DestinationFolder="$(GamePath)" />
- <Copy SourceFiles="$(TargetDir)\$(TargetName).xml" DestinationFolder="$(GamePath)" />
- <Copy SourceFiles="$(TargetDir)\Newtonsoft.Json.dll" DestinationFolder="$(GamePath)" />
- <Copy SourceFiles="$(TargetDir)\Mono.Cecil.dll" DestinationFolder="$(GamePath)" />
- </Target>
-
- <!-- launch SMAPI on debug -->
- <PropertyGroup Condition="$(Configuration) == 'Debug'">
- <StartAction>Program</StartAction>
- <StartProgram>$(GamePath)\StardewModdingAPI.exe</StartProgram>
- <StartWorkingDirectory>$(GamePath)</StartWorkingDirectory>
- </PropertyGroup>
-
- <!-- Somehow this makes Visual Studio for Mac recognise the previous section. -->
- <!-- Nobody knows why. -->
- <PropertyGroup Condition="'$(RunConfiguration)' == 'Default'" />
</Project> \ No newline at end of file