ignore reference assemblies and *.deps.json when building a mod

These aren't useful for mods since they aren't the entry app.
This commit is contained in:
Jesse Plamondon-Willard 2021-09-16 17:29:22 -04:00
parent 32dcdfe18c
commit 60c0e4fc31
No known key found for this signature in database
GPG Key ID: CF8B1456B3E29F49
2 changed files with 6 additions and 0 deletions

View File

@ -164,6 +164,9 @@ namespace StardewModdingAPI.ModBuildConfig.Framework
// release zips // release zips
this.EqualsInvariant(file.Extension, ".zip") 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 // dependencies bundled with SMAPI
|| IsAssemblyFile("0Harmony") || IsAssemblyFile("0Harmony")
|| IsAssemblyFile("Newtonsoft.Json") || IsAssemblyFile("Newtonsoft.Json")

View File

@ -15,6 +15,9 @@
<!-- recognise XNA Framework DLLs in the GAC (only affects mods using new csproj format) --> <!-- recognise XNA Framework DLLs in the GAC (only affects mods using new csproj format) -->
<AssemblySearchPaths>$(AssemblySearchPaths);{GAC}</AssemblySearchPaths> <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) --> <!-- 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> <ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>None</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>