diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-02-10 19:22:22 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-02-10 19:22:22 -0500 |
commit | c357013156b0e50d05427ccada855042bdd546d7 (patch) | |
tree | 5ab3b92b2855c3eaaa181f5cf9d0d4efeaccd83a /src/StardewModdingAPI | |
parent | 8f678d13c1bc26d3b90af1a4d17589f43439a669 (diff) | |
download | SMAPI-c357013156b0e50d05427ccada855042bdd546d7.tar.gz SMAPI-c357013156b0e50d05427ccada855042bdd546d7.tar.bz2 SMAPI-c357013156b0e50d05427ccada855042bdd546d7.zip |
tweak debug build config, update release notes
Diffstat (limited to 'src/StardewModdingAPI')
-rw-r--r-- | src/StardewModdingAPI/StardewModdingAPI.csproj | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/src/StardewModdingAPI/StardewModdingAPI.csproj b/src/StardewModdingAPI/StardewModdingAPI.csproj index 5d119b73..896721ea 100644 --- a/src/StardewModdingAPI/StardewModdingAPI.csproj +++ b/src/StardewModdingAPI/StardewModdingAPI.csproj @@ -241,14 +241,8 @@ <Target Name="BeforeBuild"> <Error Condition="!Exists('$(GamePath)')" Text="Failed to find the game install path automatically; edit the *.csproj file and manually add a <GamePath> setting with the full directory path containing the Stardew Valley executable." /> </Target> + <!-- copy files into game directory and enable debugging (only in debug mode) --> - <PropertyGroup Condition="$(Configuration) == 'Debug'"> - <StartAction>Program</StartAction> - <StartProgram>$(GamePath)\StardewModdingAPI.exe</StartProgram> - <StartWorkingDirectory>$(GamePath)</StartWorkingDirectory> - </PropertyGroup> - <!-- Fix for Mac and Linux(?) --> - <PropertyGroup Condition="'$(RunConfiguration)' == 'Default'" /> <Target Name="AfterBuild" Condition="$(Configuration) == 'Debug'"> <Copy SourceFiles="$(TargetDir)\$(TargetName).exe" DestinationFolder="$(GamePath)" /> <Copy SourceFiles="$(TargetDir)\$(TargetName).config.json" DestinationFolder="$(GamePath)" /> @@ -260,4 +254,15 @@ <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 |