summaryrefslogtreecommitdiff
path: root/src/SMAPI.ModBuildConfig
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-06-19 13:47:05 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-09-14 18:16:13 -0400
commita54db1b33019645f862b0552ad2cd0700074c592 (patch)
tree3956e1c91b99ecc4b314a62d769e8038d1418880 /src/SMAPI.ModBuildConfig
parenta07e2de9a031f3d5e79202eeea726a65065f1481 (diff)
downloadSMAPI-a54db1b33019645f862b0552ad2cd0700074c592.tar.gz
SMAPI-a54db1b33019645f862b0552ad2cd0700074c592.tar.bz2
SMAPI-a54db1b33019645f862b0552ad2cd0700074c592.zip
add optional Harmony reference to mod build package
Diffstat (limited to 'src/SMAPI.ModBuildConfig')
-rw-r--r--src/SMAPI.ModBuildConfig/build/smapi.targets8
-rw-r--r--src/SMAPI.ModBuildConfig/package.nuspec1
2 files changed, 9 insertions, 0 deletions
diff --git a/src/SMAPI.ModBuildConfig/build/smapi.targets b/src/SMAPI.ModBuildConfig/build/smapi.targets
index 1f512400..0daf40a1 100644
--- a/src/SMAPI.ModBuildConfig/build/smapi.targets
+++ b/src/SMAPI.ModBuildConfig/build/smapi.targets
@@ -24,6 +24,7 @@
<ModZipPath Condition="'$(ModZipPath)' == ''">$(TargetDir)</ModZipPath>
<EnableModDeploy Condition="'$(EnableModDeploy)' == ''">true</EnableModDeploy>
<EnableModZip Condition="'$(EnableModZip)' == ''">true</EnableModZip>
+ <EnableHarmony Condition="'$(EnableModZip)' == ''">false</EnableHarmony>
<EnableGameDebugging Condition="$(EnableGameDebugging) == ''">true</EnableGameDebugging>
<CopyModReferencesToBuildOutput Condition="'$(CopyModReferencesToBuildOutput)' == ''">false</CopyModReferencesToBuildOutput>
</PropertyGroup>
@@ -32,6 +33,13 @@
<!--*********************************************
** Inject the assembly references and debugging configuration
**********************************************-->
+ <ItemGroup>
+ <Reference Include="0Harmony" Condition="'$(EnableHarmony)' == 'true'">
+ <HintPath>$(GamePath)\smapi-internal\0Harmony.dll</HintPath>
+ <Private>false</Private>
+ <Private Condition="$(CopyModReferencesToBuildOutput)">true</Private>
+ </Reference>
+ </ItemGroup>
<Choose>
<When Condition="$(OS) == 'Windows_NT'">
<!-- references -->
diff --git a/src/SMAPI.ModBuildConfig/package.nuspec b/src/SMAPI.ModBuildConfig/package.nuspec
index 60f14efe..524cadfd 100644
--- a/src/SMAPI.ModBuildConfig/package.nuspec
+++ b/src/SMAPI.ModBuildConfig/package.nuspec
@@ -22,6 +22,7 @@
- added GAC to assembly search paths to fix references to XNA Framework.
- Added option to disable game debugging config.
- Added `.pdb` files to builds by default (to enable line numbers in error stack traces).
+ - Added optional Harmony reference.
- Fixed `Newtonsoft.Json.pdb` included in release zips when Json.NET is referenced directly.
- Fixed `&lt;IgnoreModFilePatterns&gt;` not working for `i18n` files.
- Dropped support for older versions of SMAPI and Visual Studio.