From 82562d3f7cdfa1b80613c21b6ce7f3d18d1f43d9 Mon Sep 17 00:00:00 2001 From: Bradley Grainger Date: Tue, 20 Aug 2024 10:07:32 -0700 Subject: [PATCH] Update Mono.Cecil to 0.11.5. This addresses the breaking change described at https://github.com/jbevain/cecil/releases/tag/0.11. --- Data/CecilExtensions.cs | 8 ++++---- FuGetGallery.csproj | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Data/CecilExtensions.cs b/Data/CecilExtensions.cs index b89d339..01f81b2 100644 --- a/Data/CecilExtensions.cs +++ b/Data/CecilExtensions.cs @@ -356,21 +356,21 @@ private static void WriteGenericConstraintsHtml (Collection ge w.Write (" : "); var head = ""; foreach (var c in p.Constraints) { - if (c.FullName == "System.Object") { + if (c.ConstraintType.FullName == "System.Object") { w.Write ("class"); head = ", "; break; } - else if (c.FullName == "System.ValueType") { + else if (c.ConstraintType.FullName == "System.ValueType") { w.Write ("struct"); head = ", "; break; } } foreach (var c in p.Constraints) { - if (c.FullName != "System.ValueType" && c.FullName != "System.Object") { + if (c.ConstraintType.FullName != "System.ValueType" && c.ConstraintType.FullName != "System.Object") { w.Write (head); - WriteReferenceHtml (c, w, framework); + WriteReferenceHtml (c.ConstraintType, w, framework); head = ", "; } } diff --git a/FuGetGallery.csproj b/FuGetGallery.csproj index 9ff1690..12d1fdf 100644 --- a/FuGetGallery.csproj +++ b/FuGetGallery.csproj @@ -5,7 +5,7 @@ - +