summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/StardewModdingAPI.csproj
diff options
context:
space:
mode:
authorJames Stine <Leon.Blade@gmail.com>2017-02-10 03:25:47 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2017-02-10 19:17:05 -0500
commit8f678d13c1bc26d3b90af1a4d17589f43439a669 (patch)
tree7901ce6cec5ad7427fe134076d406b27ed6d4f52 /src/StardewModdingAPI/StardewModdingAPI.csproj
parenta6977878d59d12668dbccae635f9dfbb7d759547 (diff)
downloadSMAPI-8f678d13c1bc26d3b90af1a4d17589f43439a669.tar.gz
SMAPI-8f678d13c1bc26d3b90af1a4d17589f43439a669.tar.bz2
SMAPI-8f678d13c1bc26d3b90af1a4d17589f43439a669.zip
Mac and Linux debug run works! 🙃
Diffstat (limited to 'src/StardewModdingAPI/StardewModdingAPI.csproj')
-rw-r--r--src/StardewModdingAPI/StardewModdingAPI.csproj6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/StardewModdingAPI/StardewModdingAPI.csproj b/src/StardewModdingAPI/StardewModdingAPI.csproj
index 54cf0565..5d119b73 100644
--- a/src/StardewModdingAPI/StardewModdingAPI.csproj
+++ b/src/StardewModdingAPI/StardewModdingAPI.csproj
@@ -241,12 +241,14 @@
<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, and only in Windows because I haven't tried it with Linux/Mac) -->
- <PropertyGroup Condition="$(Configuration) == 'Debug' AND $(OS) == 'Windows_NT'">
+ <!-- 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)" />