Aspnetcore: Blazor MonoLinker.exe: Need to ship Mono.Cecil.Pdb.dll next to MonoLinker.exe

Created on 11 Aug 2020  路  4Comments  路  Source: dotnet/aspnetcore

MonoLinked.exe is currently being shipped here:
C:\Users\kiril\.nuget\packages\microsoft.aspnetcore.components.webassembly.runtime\3.2.0\tools\monolinker
It includes Mono.Cecil.dll but it doesn't include Mono.Cecil.Pdb.dll.

As a result there's a first-chance exception during MonoLinker execution (although seems to be benign it's better to be clean):

Could not load file or assembly 'Mono.Cecil.Pdb, Version=0.11.1.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies. The system cannot find the file specified.

聽 | mscorlib | System.Reflection.Assembly.Load Line 364
-- | -- | --
聽 | Mono.Cecil | Mono.Cecil.Cil.SymbolProvider.GetSymbolType
聽 | Mono.Cecil | Mono.Cecil.Cil.SymbolProvider.GetReaderProvider
聽 | Mono.Cecil | Mono.Cecil.Cil.DefaultSymbolReaderProvider.GetSymbolReader
聽 | monolinker | Mono.Linker.LinkContext.SafeReadSymbols
聽 | monolinker | Mono.Linker.LinkContext.RegisterAssembly
聽 | monolinker | Mono.Linker.LinkContext.Resolve
聽 | monolinker | Mono.Linker.LinkContext.ResolveReferences
聽 | monolinker | Mono.Linker.Steps.LoadReferencesStep.ProcessReferences
聽 | monolinker | Mono.Linker.Steps.LoadReferencesStep.ProcessAssembly
聽 | monolinker | Mono.Linker.Steps.BaseStep.Process
聽 | monolinker | Mono.Linker.Pipeline.ProcessStep
聽 | monolinker | Mono.Linker.Pipeline.Process
聽 | monolinker | Mono.Linker.Driver.Run
聽 | monolinker | Mono.Linker.Driver.Execute
聽 | monolinker | Mono.Linker.Driver.Main

I found the source here but I'm not sure it's the latest:
https://github.com/dotnet/blazor/tree/master/src/Microsoft.AspNetCore.Components.WebAssembly.Runtime

@pranavkm

area-blazor

Most helpful comment

I couldn't find the related linker issue. I don't know about the microsoft.aspnetcore.components.webassembly.runtime package, but the ILLink.Tasks does contain Mono.Cecil.Pdb.dll alongside illink.dll so I expect this is not an issue in 5.0.

All 4 comments

@sbomer there's an issue in the linker repo that tracks this. Can we figure this out for 5.0? It's fairly unlikely we'll fix this for 3.2.

I couldn't find the related linker issue. I don't know about the microsoft.aspnetcore.components.webassembly.runtime package, but the ILLink.Tasks does contain Mono.Cecil.Pdb.dll alongside illink.dll so I expect this is not an issue in 5.0.

Cool, we can close this issue then. Just for my curiosity, where's the source to ILLink.Tasks?

Was this page helpful?
0 / 5 - 0 ratings