Skip to content

Commit

Permalink
Update Mono.Cecil to 0.11.5.
Browse files Browse the repository at this point in the history
This addresses the breaking change described at https://github.com/jbevain/cecil/releases/tag/0.11.
  • Loading branch information
bgrainger committed Aug 20, 2024
1 parent 76f1421 commit 82562d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Data/CecilExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -356,21 +356,21 @@ private static void WriteGenericConstraintsHtml (Collection<GenericParameter> 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 = ", ";
}
}
Expand Down
2 changes: 1 addition & 1 deletion FuGetGallery.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="ICSharpCode.Decompiler" Version="3.2.0.3856" />
<PackageReference Include="Mono.Cecil" Version="0.10.4" />
<PackageReference Include="Mono.Cecil" Version="0.11.5" />
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="5.0.0" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="NGraphics" Version="0.6.0-beta1" />
Expand Down

0 comments on commit 82562d3

Please sign in to comment.