You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 25, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 25, 2026. It is now read-only.
The Mono.Cecil version in the Microsoft.NET.ILLink NuGet is wrong #2173
$ monodis --assemblyref /Users/rolf/.nuget/packages/microsoft.net.illink/6.0.100-preview.6.21376.2/ref/net5.0/illink.dll
AssemblyRef Table
1: Version=5.0.0.0
Name=System.Runtime
Flags=0x00000000
Public Key:
0x00000000: B0 3F 5F 7F 11 D5 0A 3A
Zero sized hash value
2: Version=0.11.4.0
Name=Mono.Cecil
Flags=0x00000000
Public Key:
0x00000000: 50 CE BF 1C CE B9 D0 5E
Zero sized hash value
The end result is that if I reference the Microsoft.NET.ILink package, I end up with this build problem:
CSC [dotnet] dotnet-linker.dll
CSC : error CS1705: Assembly 'illink' with identity 'illink, Version=6.0.100.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' uses 'Mono.Cecil, Version=0.11.4.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e' which has a higher version than referenced assembly 'Mono.Cecil' with identity 'Mono.Cecil, Version=0.11.3.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e'
because the build ends up referencing Mono.Cecil 0.11.3
changed the title [-]The Mono.Cecil reference in Microsoft.NET.ILLink is wrong[/-][+]The Mono.Cecil version in the Microsoft.NET.ILLink NuGet is wrong[/+]on Jul 27, 2021
Activity
[-]The Mono.Cecil reference in Microsoft.NET.ILLink is wrong[/-][+]The Mono.Cecil version in the Microsoft.NET.ILLink NuGet is wrong[/+]rolfbjarne commentedon Jul 27, 2021
A workaround is to add a reference Mono.Cecil 0.11.4 in my project:
and that seems to make the build choose the correct version.
[dotnet-linker] Reference Mono.Cecil 0.11.4 directly.
Bump cecil package version
[main] Update dependencies from dotnet/installer (#12245)
Bump cecil package version (#2174)
Bump cecil package version (dotnet/linker#2174)