From 60c0e4fc31475847cbf94d201f0bd394c537d9c0 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Thu, 16 Sep 2021 17:29:22 -0400 Subject: ignore reference assemblies and *.deps.json when building a mod These aren't useful for mods since they aren't the entry app. --- src/SMAPI.ModBuildConfig/Framework/ModFileManager.cs | 3 +++ src/SMAPI.ModBuildConfig/build/smapi.targets | 3 +++ 2 files changed, 6 insertions(+) (limited to 'src/SMAPI.ModBuildConfig') 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 @@ $(AssemblySearchPaths);{GAC} + + false + None -- cgit