summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-09-16 17:29:22 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-11-28 00:01:47 -0500
commit60c0e4fc31475847cbf94d201f0bd394c537d9c0 (patch)
tree294a40c00adbd374efa60cd8f794f69a4d04e939 /src
parent32dcdfe18c634804983f130c0b7bac4bddca93f7 (diff)
downloadSMAPI-60c0e4fc31475847cbf94d201f0bd394c537d9c0.tar.gz
SMAPI-60c0e4fc31475847cbf94d201f0bd394c537d9c0.tar.bz2
SMAPI-60c0e4fc31475847cbf94d201f0bd394c537d9c0.zip
ignore reference assemblies and *.deps.json when building a mod
These aren't useful for mods since they aren't the entry app.
Diffstat (limited to 'src')
-rw-r--r--src/SMAPI.ModBuildConfig/Framework/ModFileManager.cs3
-rw-r--r--src/SMAPI.ModBuildConfig/build/smapi.targets3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/SMAPI.ModBuildConfig/Framework/ModFileManager.cs b/src/SMAPI.ModBuildConfig/Framework/ModFileManager.cs
index 7a1ed7a4..3d9b206b 100644
--- a/src/SMAPI.ModBuildConfig/Framework/ModFileManager.cs
+++ b/src/SMAPI.ModBuildConfig/Framework/ModFileManager.cs
@@ -164,6 +164,9 @@ namespace StardewModdingAPI.ModBuildConfig.Framework
// release zips
this.EqualsInvariant(file.Extension, ".zip")
+ // unneeded *.deps.json (only SMAPI's top-level one is used)
+ || file.Name.EndsWith(".deps.json")
+
// dependencies bundled with SMAPI
|| IsAssemblyFile("0Harmony")
|| IsAssemblyFile("Newtonsoft.Json")
diff --git a/src/SMAPI.ModBuildConfig/build/smapi.targets b/src/SMAPI.ModBuildConfig/build/smapi.targets
index a3cd6c45..74ac56e6 100644
--- a/src/SMAPI.ModBuildConfig/build/smapi.targets
+++ b/src/SMAPI.ModBuildConfig/build/smapi.targets
@@ -15,6 +15,9 @@
<!-- recognise XNA Framework DLLs in the GAC (only affects mods using new csproj format) -->
<AssemblySearchPaths>$(AssemblySearchPaths);{GAC}</AssemblySearchPaths>
+ <!-- don't create the 'refs' folder (which isn't useful for mods) -->
+ <ProduceReferenceAssembly>false</ProduceReferenceAssembly>
+
<!-- suppress processor architecture mismatch warning (mods should be compiled in 'Any CPU' so they work in both 32-bit and 64-bit mode) -->
<ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>None</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>