diff --git a/CelesteMod.Publicizer/CelesteMod.Publicizer.csproj b/CelesteMod.Publicizer/CelesteMod.Publicizer.csproj index a5e0e5b..d2405c8 100755 --- a/CelesteMod.Publicizer/CelesteMod.Publicizer.csproj +++ b/CelesteMod.Publicizer/CelesteMod.Publicizer.csproj @@ -34,7 +34,7 @@ - + diff --git a/CelesteMod.Publicizer/CelestePublicizerTask.cs b/CelesteMod.Publicizer/CelestePublicizerTask.cs index 5a0c6de..e9bd40a 100755 --- a/CelesteMod.Publicizer/CelestePublicizerTask.cs +++ b/CelesteMod.Publicizer/CelestePublicizerTask.cs @@ -12,9 +12,9 @@ using AsmResolver.DotNet; using AsmResolver.DotNet.Signatures; using BepInEx.AssemblyPublicizer; -using FieldAttributes = AsmResolver.PE.DotNet.Metadata.Tables.Rows.FieldAttributes; -using MethodAttributes = AsmResolver.PE.DotNet.Metadata.Tables.Rows.MethodAttributes; -using TypeAttributes = AsmResolver.PE.DotNet.Metadata.Tables.Rows.TypeAttributes; +using FieldAttributes = AsmResolver.PE.DotNet.Metadata.Tables.FieldAttributes; +using MethodAttributes = AsmResolver.PE.DotNet.Metadata.Tables.MethodAttributes; +using TypeAttributes = AsmResolver.PE.DotNet.Metadata.Tables.TypeAttributes; namespace CelesteMod.Publicizer; diff --git a/CelesteMod.Publicizer/FatalAsmResolver.cs b/CelesteMod.Publicizer/FatalAsmResolver.cs index 16c3128..1697ee8 100755 --- a/CelesteMod.Publicizer/FatalAsmResolver.cs +++ b/CelesteMod.Publicizer/FatalAsmResolver.cs @@ -9,7 +9,7 @@ using AsmResolver.DotNet.Serialized; using AsmResolver.IO; using AsmResolver.PE; -using AsmResolver.PE.DotNet.Builder; +using AsmResolver.PE.Builder; namespace BepInEx.AssemblyPublicizer; @@ -43,7 +43,7 @@ public static void FatalWrite(this ModuleDefinition module, string filePath) var result = new ManagedPEImageBuilder().CreateImage(module); if (result.HasFailed) { - throw new AggregateException("Construction of the PE image failed with one or more errors.", result.DiagnosticBag.Exceptions); + throw new AggregateException("Construction of the PE image failed with one or more errors.", (result.ErrorListener as DiagnosticBag)?.Exceptions ?? []); } using var fileStream = File.Create(filePath); diff --git a/CelesteMod.Publicizer/OrigVisibilityAttribute.cs b/CelesteMod.Publicizer/OrigVisibilityAttribute.cs index c722c50..ccc92ee 100755 --- a/CelesteMod.Publicizer/OrigVisibilityAttribute.cs +++ b/CelesteMod.Publicizer/OrigVisibilityAttribute.cs @@ -4,9 +4,8 @@ using AsmResolver.DotNet; using AsmResolver.DotNet.Code.Cil; using AsmResolver.DotNet.Signatures; -using AsmResolver.DotNet.Signatures.Types; using AsmResolver.PE.DotNet.Cil; -using AsmResolver.PE.DotNet.Metadata.Tables.Rows; +using AsmResolver.PE.DotNet.Metadata.Tables; namespace CelesteMod.Publicizer;