summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-06-13 18:19:27 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-09-14 18:03:48 -0400
commit93551c094139d4446ef5c4fc69bcda26e49e62bd (patch)
tree0bd8c3244f2d0f0b4c875e9e22ad6050c64950b4
parentd5a7465b0219c3d736b1ac5aff1758ba41887fcc (diff)
downloadSMAPI-93551c094139d4446ef5c4fc69bcda26e49e62bd.tar.gz
SMAPI-93551c094139d4446ef5c4fc69bcda26e49e62bd.tar.bz2
SMAPI-93551c094139d4446ef5c4fc69bcda26e49e62bd.zip
add temporary backwards compatibility for SDV 1.3.36 in mod build package
-rw-r--r--docs/mod-build-config.md4
-rw-r--r--src/SMAPI.ModBuildConfig/build/smapi.targets10
-rw-r--r--src/SMAPI.ModBuildConfig/package.nuspec4
3 files changed, 12 insertions, 6 deletions
diff --git a/docs/mod-build-config.md b/docs/mod-build-config.md
index 22b5f4ea..4ffc34a9 100644
--- a/docs/mod-build-config.md
+++ b/docs/mod-build-config.md
@@ -228,13 +228,13 @@ _[Game path](#game-path)_ above.
## Release notes
### Upcoming release
-* Updated for SMAPI 3.0 and Stardew Valley 1.4.
+* Updated for SMAPI 3.0 and Stardew Valley 1.4. (The beta is backwards-compatible with previous versions.)
* If the project contains an `assets` folder, its contents are now included in the mod automatically.
* For projects using the new `.csproj` format:
* platform target is now set to x86 automatically to avoid mismatching platform target warnings;
* added GAC to assembly search paths to fix references to XNA Framework.
* Fixed `Newtonsoft.Json.pdb` included in release zips when Json.NET is referenced directly.
-* Fixed `&lt;IgnoreModFilePatterns&gt;` not working for `i18n` files.
+* Fixed `<IgnoreModFilePatterns>` not working for `i18n` files.
* Dropped support for older versions of SMAPI and Visual Studio.
### 2.2
diff --git a/src/SMAPI.ModBuildConfig/build/smapi.targets b/src/SMAPI.ModBuildConfig/build/smapi.targets
index e9209a45..103e996a 100644
--- a/src/SMAPI.ModBuildConfig/build/smapi.targets
+++ b/src/SMAPI.ModBuildConfig/build/smapi.targets
@@ -98,7 +98,7 @@
<Private>false</Private>
<Private Condition="$(CopyModReferencesToBuildOutput)">true</Private>
</Reference>
- <Reference Include="StardewValley.GameData">
+ <Reference Include="StardewValley.GameData" Condition="Exists('$(GamePath)\StardewValley.GameData.dll')"> <!--temporary backwards-compatibility-->
<HintPath>$(GamePath)\StardewValley.GameData.dll</HintPath>
<Private>false</Private>
<Private Condition="$(CopyModReferencesToBuildOutput)">true</Private>
@@ -112,6 +112,9 @@
<HintPath>$(GamePath)\smapi-internal\SMAPI.Toolkit.CoreInterfaces.dll</HintPath>
<Private>false</Private>
<Private Condition="$(CopyModReferencesToBuildOutput)">true</Private>
+
+ <!-- temporary backwards-compatibility -->
+ <HintPath Condition="!Exists('$(GamePath)\smapi-internal\SMAPI.Toolkit.CoreInterfaces.dll') AND Exists('$(GamePath)\smapi-internal\StardewModdingAPI.Toolkit.CoreInterfaces.dll')">$(GamePath)\smapi-internal\StardewModdingAPI.Toolkit.CoreInterfaces.dll</HintPath>
</Reference>
<Reference Include="xTile, Version=2.0.4.0, Culture=neutral, processorArchitecture=x86">
<HintPath>$(GamePath)\xTile.dll</HintPath>
@@ -142,7 +145,7 @@
<Private>false</Private>
<Private Condition="$(CopyModReferencesToBuildOutput)">true</Private>
</Reference>
- <Reference Include="StardewValley.GameData.MonoGame">
+ <Reference Include="StardewValley.GameData.MonoGame" Condition="Exists('$(GamePath)\StardewValley.GameData.MonoGame.dll')"> <!--temporary backwards-compatibility-->
<HintPath>$(GamePath)\StardewValley.GameData.MonoGame.dll</HintPath>
<Private>false</Private>
<Private Condition="$(CopyModReferencesToBuildOutput)">true</Private>
@@ -156,6 +159,9 @@
<HintPath>$(GamePath)\smapi-internal\SMAPI.Toolkit.CoreInterfaces.dll</HintPath>
<Private>false</Private>
<Private Condition="$(CopyModReferencesToBuildOutput)">true</Private>
+
+ <!-- temporary backwards-compatibility -->
+ <HintPath Condition="!Exists('$(GamePath)\smapi-internal\SMAPI.Toolkit.CoreInterfaces.dll') AND Exists('$(GamePath)\smapi-internal\StardewModdingAPI.Toolkit.CoreInterfaces.dll')">$(GamePath)\smapi-internal\StardewModdingAPI.Toolkit.CoreInterfaces.dll</HintPath>
</Reference>
<Reference Include="xTile">
<HintPath>$(GamePath)\xTile.dll</HintPath>
diff --git a/src/SMAPI.ModBuildConfig/package.nuspec b/src/SMAPI.ModBuildConfig/package.nuspec
index 28bcf807..e82bded4 100644
--- a/src/SMAPI.ModBuildConfig/package.nuspec
+++ b/src/SMAPI.ModBuildConfig/package.nuspec
@@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata>
<id>Pathoschild.Stardew.ModBuildConfig</id>
- <version>3.0.0-alpha.20190611</version>
+ <version>3.0.0-beta.2</version>
<title>Build package for SMAPI mods</title>
<authors>Pathoschild</authors>
<owners>Pathoschild</owners>
@@ -14,7 +14,7 @@
<description>Automates the build configuration for crossplatform Stardew Valley SMAPI mods. For SMAPI 2.11 or later.</description>
<releaseNotes>
3.0.0:
- - Updated for SMAPI 3.0 and Stardew Valley 1.4.
+ - Updated for SMAPI 3.0 and Stardew Valley 1.4. (The beta is backwards-compatible with previous versions.)
- If the project contains an `assets` folder, its contents are now included in the mod automatically.
- For projects using the new `.csproj` format:
- platform target is now set to x86 automatically to avoid mismatching platform target warnings;