diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2019-04-18 22:42:04 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2019-09-14 17:14:49 -0400 |
commit | aa7e4b9c36bf14656493ee0a7ab2dab394a3cf64 (patch) | |
tree | f9eef65af92e1707f33f6cafb1af3c58c2b42852 | |
parent | 78f28357e4f87ed619144229ea65c1e1cb0f9dd3 (diff) | |
download | SMAPI-aa7e4b9c36bf14656493ee0a7ab2dab394a3cf64.tar.gz SMAPI-aa7e4b9c36bf14656493ee0a7ab2dab394a3cf64.tar.bz2 SMAPI-aa7e4b9c36bf14656493ee0a7ab2dab394a3cf64.zip |
add new DLL to SMAPI references, support older game versions in package, fix name on Linux/Mac (#638)
-rw-r--r-- | build/common.targets | 10 | ||||
-rw-r--r-- | src/SMAPI.ModBuildConfig/build/smapi.targets | 10 |
2 files changed, 14 insertions, 6 deletions
diff --git a/build/common.targets b/build/common.targets index 0781d568..4aac55fc 100644 --- a/build/common.targets +++ b/build/common.targets @@ -45,10 +45,14 @@ </PropertyGroup> <ItemGroup Condition="$(OS) == 'Windows_NT'"> - <Reference Include="Stardew Valley"> + <Reference Include="Stardew Valley"> <HintPath>$(GamePath)\Stardew Valley.exe</HintPath> <Private Condition="'$(MSBuildProjectName)' != 'StardewModdingAPI.Tests'">False</Private> </Reference> + <Reference Include="StardewValley.GameData"> + <HintPath>$(GamePath)\StardewValley.GameData.dll</HintPath> + <Private Condition="'$(MSBuildProjectName)' != 'StardewModdingAPI.Tests'">False</Private> + </Reference> <Reference Include="Netcode"> <HintPath>$(GamePath)\Netcode.dll</HintPath> <Private Condition="'$(MSBuildProjectName)' != 'StardewModdingAPI.Tests'">False</Private> @@ -73,6 +77,10 @@ <HintPath>$(GamePath)\StardewValley.exe</HintPath> <Private>False</Private> </Reference> + <Reference Include="StardewValley.GameData.MonoGame"> + <HintPath>$(GamePath)\StardewValley.GameData.MonoGame.dll</HintPath> + <Private Condition="'$(MSBuildProjectName)' != 'StardewModdingAPI.Tests'">False</Private> + </Reference> <Reference Include="MonoGame.Framework"> <HintPath>$(GamePath)\MonoGame.Framework.dll</HintPath> <Private>False</Private> diff --git a/src/SMAPI.ModBuildConfig/build/smapi.targets b/src/SMAPI.ModBuildConfig/build/smapi.targets index e3211466..f703477f 100644 --- a/src/SMAPI.ModBuildConfig/build/smapi.targets +++ b/src/SMAPI.ModBuildConfig/build/smapi.targets @@ -95,7 +95,7 @@ <Private>false</Private> <Private Condition="$(CopyModReferencesToBuildOutput)">true</Private> </Reference> - <Reference Include="StardewValley.GameData"> + <Reference Include="StardewValley.GameData" Condition="Exists('$(GamePath)\StardewValley.GameData.dll')"> <HintPath>$(GamePath)\StardewValley.GameData.dll</HintPath> <Private>false</Private> <Private Condition="$(CopyModReferencesToBuildOutput)">true</Private> @@ -113,7 +113,7 @@ <Reference Include="xTile, Version=2.0.4.0, Culture=neutral, processorArchitecture=x86"> <HintPath>$(GamePath)\xTile.dll</HintPath> <Private>false</Private> - <SpecificVersion>False</SpecificVersion> + <SpecificVersion>false</SpecificVersion> <Private Condition="$(CopyModReferencesToBuildOutput)">true</Private> </Reference> </ItemGroup> @@ -131,7 +131,7 @@ <Reference Include="MonoGame.Framework"> <HintPath>$(GamePath)\MonoGame.Framework.dll</HintPath> <Private>false</Private> - <SpecificVersion>False</SpecificVersion> + <SpecificVersion>false</SpecificVersion> <Private Condition="$(CopyModReferencesToBuildOutput)">true</Private> </Reference> <Reference Include="StardewValley"> @@ -139,8 +139,8 @@ <Private>false</Private> <Private Condition="$(CopyModReferencesToBuildOutput)">true</Private> </Reference> - <Reference Include="StardewValley.GameData"> - <HintPath>$(GamePath)\StardewValley.GameData.dll</HintPath> + <Reference Include="StardewValley.GameData.MonoGame" Condition="Exists('$(GamePath)\StardewValley.GameData.MonoGame.dll')"> + <HintPath>$(GamePath)\StardewValley.GameData.MonoGame.dll</HintPath> <Private>false</Private> <Private Condition="$(CopyModReferencesToBuildOutput)">true</Private> </Reference> |