diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2016-10-19 18:54:04 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2016-10-19 18:54:04 -0400 |
commit | 555e0d12241f9bda0262f513fa6bc8c55cc7d5fe (patch) | |
tree | 970f934ac540f4aeb51f5eec64bc783b94626b59 /build/smapi.targets | |
parent | c6dbad2594620f9c25e7e548b813522c1e6c626d (diff) | |
download | SMAPI-555e0d12241f9bda0262f513fa6bc8c55cc7d5fe.tar.gz SMAPI-555e0d12241f9bda0262f513fa6bc8c55cc7d5fe.tar.bz2 SMAPI-555e0d12241f9bda0262f513fa6bc8c55cc7d5fe.zip |
add NuGet package spec + icon
Diffstat (limited to 'build/smapi.targets')
-rw-r--r-- | build/smapi.targets | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/build/smapi.targets b/build/smapi.targets new file mode 100644 index 00000000..1e71d06a --- /dev/null +++ b/build/smapi.targets @@ -0,0 +1,51 @@ +<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <!-- mod build info --> + <PropertyGroup> + <GamePath>C:\Program Files (x86)\GalaxyClient\Games\Stardew Valley</GamePath> + <GamePath Condition="!Exists('$(GamePath)')">C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley</GamePath> + <GamePath Condition="!Exists('$(GamePath)')">~\Library\Application Support\Steam\steamapps\common\Stardew Valley\Contents\MacOS</GamePath> + <StartAction>Program</StartAction> + <StartProgram>$(GamePath)\StardewModdingAPI.exe</StartProgram> + <StartWorkingDirectory>$(GamePath)</StartWorkingDirectory> + </PropertyGroup> + + <!-- references for Windows --> + <ItemGroup Condition="$(OS) == 'Windows_NT'"> + <Reference Include="Microsoft.Xna.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86" /> + <Reference Include="Microsoft.Xna.Framework.Game, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86" /> + <Reference Include="Microsoft.Xna.Framework.Graphics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86" /> + <Reference Include="Stardew Valley"> + <HintPath>$(GamePath)\Stardew Valley.exe</HintPath> + </Reference> + <Reference Include="StardewModdingAPI"> + <HintPath>$(GamePath)\StardewModdingAPI.exe</HintPath> + </Reference> + <Reference Include="xTile, Version=2.0.4.0, Culture=neutral, processorArchitecture=x86"> + <SpecificVersion>False</SpecificVersion> + <HintPath>$(GamePath)\xTile.dll</HintPath> + </Reference> + </ItemGroup> + + <!-- references for Linux/Mac --> + <ItemGroup Condition="$(OS) == 'Unix'"> + <Reference Include="MonoGame.Framework"> + <SpecificVersion>False</SpecificVersion> + <HintPath>$(GamePath)\MonoGame.Framework.dll</HintPath> + </Reference> + <Reference Include="StardewValley"> + <HintPath>$(GamePath)\StardewValley.exe</HintPath> + </Reference> + <Reference Include="StardewModdingAPI"> + <HintPath>$(GamePath)\StardewModdingAPI.exe</HintPath> + </Reference> + <Reference Include="xTile"> + <HintPath>$(GamePath)\xTile.dll</HintPath> + </Reference> + </ItemGroup> + + <!-- Validate game path & automate mod package --> + <Target Name="BeforeBuild"> + <Error Text="Failed to find the game install path automatically; edit the *.csproj file and manually set the <GamePath> setting to the directory containing the Stardew Valley executable." Condition="!Exists('$(GamePath)')" /> + </Target> + +</Project>
\ No newline at end of file |