You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/SMAPI.Toolkit.CoreInterfaces/IManifest.cs
-3
Original file line number
Diff line number
Diff line change
@@ -38,9 +38,6 @@ public interface IManifest
38
38
/// <summary>The other mods that must be loaded before this mod.</summary>
39
39
IManifestDependency[]Dependencies{get;}
40
40
41
-
/// <summary>The assemblies in the mod folder which should only be referenced by this mod. These will be ignored when another mod tries to use assemblies with the same names.</summary>
42
-
IManifestPrivateAssembly[]PrivateAssemblies{get;}
43
-
44
41
/// <summary>The namespaced mod IDs to query for updates (like <c>Nexus:541</c>).</summary>
error=$"manifest has a {nameof(IManifest.PrivateAssemblies)} entry with an invalid {nameof(IManifestPrivateAssembly.Name)} field (must be the assembly name without the file path, extension, or metadata).";
130
-
returnfalse;
131
-
}
132
-
133
-
if(assembly.Nameis"0Harmony" or "MonoGame.Framework" or "StardewModdingAPI" or "Stardew Valley" or "StardewValley.GameData")
134
-
{
135
-
error=$"manifest has a {nameof(IManifest.PrivateAssemblies)} entry with an invalid {nameof(IManifestPrivateAssembly.Name)} field (the '{assembly.Name}' assembly can't be private).";
/// <param name="entryDll">The name of the DLL in the directory that has the <c>Entry</c> method. Mutually exclusive with <see cref="ContentPackFor"/>.</param>
98
93
/// <param name="contentPackFor">The modID which will read this as a content pack.</param>
99
94
/// <param name="dependencies">The other mods that must be loaded before this mod.</param>
100
-
/// <param name="privateAssemblies">The names of assemblies that should be private to this mod. These assemblies will not be directly accessible by other mods and will be ignored when a mod tries to use an assembly with the same name in a public manner.</param>
101
95
/// <param name="updateKeys">The namespaced mod IDs to query for updates (like <c>Nexus:541</c>).</param>
this.Monitor.Log($" Mod '{mod.DisplayName}' refers to private assembly '{assemblyName}' in its manifest, but doesn't use it. This is a bug that should be reported to that mod's author.",LogLevel.Warn);
0 commit comments