diff --git a/build_nuget.bat b/build_nuget.bat
new file mode 100644
index 0000000..154f366
--- /dev/null
+++ b/build_nuget.bat
@@ -0,0 +1,6 @@
+@echo off
+dotnet clean -c Debug
+dotnet clean -c Release
+rm -rf .\bin
+dotnet build -c Release
+dotnet pack -c Release
diff --git a/src/ADLMidi.NET.csproj b/src/ADLMidi.NET.csproj
index e667477..fdc7d56 100644
--- a/src/ADLMidi.NET.csproj
+++ b/src/ADLMidi.NET.csproj
@@ -6,18 +6,19 @@
Cam Sinclair
A .NET wrapper for the libADLMIDI library, a free Software MIDI synthesizer library with OPL3 emulation
2020 Cam Sinclair
+ ADLMidi.NET
LGPL-2.1-or-later
- https://github.com/CSinkers/AdlMidi.NET
- https://github.com/CSinkers/AdlMidi.NET
- Git
MIDI OPL3 ADLMIDI
+ https://github.com/CSinkers/AdlMidi.NET
latest
+ Git
+ https://github.com/CSinkers/AdlMidi.NET
true
- 1.0.1
+ 1.0.2
-
+
diff --git a/src/GlobalTimbreLibrary.cs b/src/GlobalTimbreLibrary.cs
index 870c8b8..4ca9b27 100644
--- a/src/GlobalTimbreLibrary.cs
+++ b/src/GlobalTimbreLibrary.cs
@@ -72,7 +72,7 @@ public static GlobalTimbreLibrary Serdes(GlobalTimbreLibrary library, ISerialize
}, s);
}
- s.List(library.Data, headers.Count - 1, TimbreData.Serdes);
+ s.List(nameof(library.Data), library.Data, headers.Count - 1, TimbreData.Serdes);
for (int i = 0; i < headers.Count - 1; i++)
{
library.Data[i].MidiPatchNumber = headers[i].MidiPatchNumber;
diff --git a/src/WoplFile.cs b/src/WoplFile.cs
index 588da77..1a382d4 100644
--- a/src/WoplFile.cs
+++ b/src/WoplFile.cs
@@ -48,10 +48,10 @@ public static WoplFile Serdes(WoplFile w, ISerializer s)
// Load instruments (128 per bank)
foreach (var bank in w.Melodic)
- s.List(bank.Instruments, bank.Instruments.Length, WoplInstrument.Serdes);
+ s.List(nameof(w.Melodic), bank.Instruments, bank.Instruments.Length, WoplInstrument.Serdes);
foreach (var bank in w.Percussion)
- s.List(bank.Instruments, bank.Instruments.Length, WoplInstrument.Serdes);
+ s.List(nameof(w.Percussion), bank.Instruments, bank.Instruments.Length, WoplInstrument.Serdes);
s.PopVersion();
return w;