Skip to content

Commit d088583

Browse files
committed
ignore Harmony DLL in mod build package
1 parent 0fddc7f commit d088583

4 files changed

Lines changed: 14 additions & 15 deletions

File tree

docs/technical/mod-package.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,11 @@ That will create a `Pathoschild.Stardew.ModBuildConfig-<version>.nupkg` file in
287287
which can be uploaded to NuGet or referenced directly.
288288

289289
## Release notes
290-
### Upcoming release
290+
### 3.1
291+
* Added support for semantic versioning 2.0.
292+
* `0Harmony.dll` is now ignored if the mod references it directly (it's bundled with SMAPI).
293+
294+
### 3.0
291295
* Updated for SMAPI 3.0 and Stardew Valley 1.4.
292296
* Added automatic support for `assets` folders.
293297
* Added `$(GameExecutableName)` MSBuild variable.
@@ -298,6 +302,7 @@ which can be uploaded to NuGet or referenced directly.
298302
* Fixed `Newtonsoft.Json.pdb` included in release zips when Json.NET is referenced directly.
299303
* Fixed `<IgnoreModFilePatterns>` not working for `i18n` files.
300304
* Dropped support for older versions of SMAPI and Visual Studio.
305+
* Migrated package icon to NuGet's new format.
301306

302307
### 2.2
303308
* Added support for SMAPI 2.8+ (still compatible with earlier versions).

src/SMAPI.ModBuildConfig/Framework/ModFileManager.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ private bool ShouldIgnore(FileInfo file, string relativePath, Regex[] ignoreFile
156156
// release zips
157157
this.EqualsInvariant(file.Extension, ".zip")
158158

159+
// Harmony (bundled into SMAPI)
160+
|| this.EqualsInvariant(file.Name, "0Harmony.dll")
161+
159162
// Json.NET (bundled into SMAPI)
160163
|| this.EqualsInvariant(file.Name, "Newtonsoft.Json.dll")
161164
|| this.EqualsInvariant(file.Name, "Newtonsoft.Json.pdb")

src/SMAPI.ModBuildConfig/package.nuspec

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,9 @@
1414
<iconUrl>https://raw.githubusercontent.com/Pathoschild/SMAPI/develop/src/SMAPI.ModBuildConfig/assets/nuget-icon.png</iconUrl>
1515
<description>Automates the build configuration for crossplatform Stardew Valley SMAPI mods. For SMAPI 3.0 or later.</description>
1616
<releaseNotes>
17-
3.0.0:
18-
- Updated for SMAPI 3.0 and Stardew Valley 1.4.
19-
- Added automatic support for 'assets' folders.
20-
- Added $(GameExecutableName) MSBuild variable.
21-
- Added support for projects using the simplified .csproj format.
22-
- Added option to disable game debugging config.
23-
- Added .pdb files to builds by default (to enable line numbers in error stack traces).
24-
- Added optional Harmony reference.
25-
- Fixed Newtonsoft.Json.pdb included in release zips when Json.NET is referenced directly.
26-
- Fixed &lt;IgnoreModFilePatterns&gt; not working for i18n files.
27-
- Dropped support for older versions of SMAPI and Visual Studio.
28-
- Migrated package icon to NuGet's new format.
17+
3.1.0:
18+
- Added support for semantic versioning 2.0.
19+
- 0Harmony.dll is now ignored if the mod references it directly (it's bundled with SMAPI).
2920
</releaseNotes>
3021
</metadata>
3122
<files>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"Name": "Console Commands",
33
"Author": "SMAPI",
4-
"Version": "3.1.0",
4+
"Version": "3.2.0",
55
"Description": "Adds SMAPI console commands that let you manipulate the game.",
66
"UniqueID": "SMAPI.ConsoleCommands",
77
"EntryDll": "ConsoleCommands.dll",
8-
"MinimumApiVersion": "3.1.0"
8+
"MinimumApiVersion": "3.2.0"
99
}

0 commit comments

Comments
 (0)