diff options
-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> |