diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-01-22 22:52:41 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-01-22 22:52:41 -0500 |
commit | 2c278b970385486232b2c2727ab74c20e7730921 (patch) | |
tree | 07e7e33c0019bd37314b01ba425c0e0f34bd9715 /build/smapi.targets | |
parent | f37733df11873250233a2cf84a118cfcd37dd643 (diff) | |
download | SMAPI-2c278b970385486232b2c2727ab74c20e7730921.tar.gz SMAPI-2c278b970385486232b2c2727ab74c20e7730921.tar.bz2 SMAPI-2c278b970385486232b2c2727ab74c20e7730921.zip |
add support for setting a custom game path globally
Diffstat (limited to 'build/smapi.targets')
-rw-r--r-- | build/smapi.targets | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/build/smapi.targets b/build/smapi.targets index ed513846..de3420d1 100644 --- a/build/smapi.targets +++ b/build/smapi.targets @@ -1,5 +1,11 @@ <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <!--###### + ## import global settings + #######--> + <Import Condition="$(OS) != 'Windows_NT' AND Exists('$(HOME)\stardewvalley.targets')" Project="$(HOME)\stardewvalley.targets" /> + <Import Condition="$(OS) == 'Windows_NT' AND Exists('$(USERPROFILE)\stardewvalley.targets')" Project="$(USERPROFILE)\stardewvalley.targets" /> + + <!--###### ## select target OS #######--> <PropertyGroup> @@ -94,6 +100,6 @@ #######--> <Target Name="BeforeBuild"> <!-- 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 <GamePath> setting with the full directory path containing the Stardew Valley executable." /> + <Error Condition="!Exists('$(GamePath)')" Text="Failed to find the game install path. See https://github.com/Pathoschild/Stardew.ModBuildConfig#troubleshoot for help." /> </Target> </Project>
\ No newline at end of file |