Unable to publish when updating though nuget when targeting a SF version above 18.1.0.53

We were unable to publish our app though visual studio or CLI ("dotnet publish -c Release")

After painstakingly narrowing down where things went wrong I have determined the issue is caused when updating Syncfusion through NuGet to either 18.1.0.54 or 18.1.0.55. Everything goes fine when I target 18.1.0.53 or lower.

The error I'm getting both on our "production" server running Linux, but also when using the Visual Studio Publish option is:


7>Fatal error in Mono IL Linker
7>C:\Users\RichardV\.nuget\packages\microsoft.aspnetcore.components.webassembly.build\3.2.0\targets\Blazor.MonoRuntime.targets(326,5): error : Unhandled exception. Mono.Linker.Steps.XmlResolutionException: Failed to process XML description: <unspecified>
7> ---> Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'Microsoft.AspNetCore.Http.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'
7> ---> Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'Microsoft.AspNetCore.Http.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'
7>   at Mono.Cecil.BaseAssemblyResolver.Resolve(AssemblyNameReference name, ReaderParameters parameters)
7>   at Mono.Linker.AssemblyResolver.Resolve(AssemblyNameReference name, ReaderParameters parameters)
7>   at Mono.Linker.LinkContext.Resolve(IMetadataScope scope)
7>   at Mono.Linker.LinkContext.Resolve(IMetadataScope scope)
7>   at Mono.Linker.Steps.ResolveFromXmlStep.ProcessAssemblies(LinkContext context, XPathNodeIterator iterator)
7>   at Mono.Linker.Steps.ResolveFromXmlStep.Process()
7>   --- End of inner exception stack trace ---
7>   at Mono.Linker.Steps.ResolveFromXmlStep.Process()
7>   at Mono.Linker.Steps.BaseStep.Process(LinkContext context)
7>   at Mono.Linker.Pipeline.ProcessStep(LinkContext context, IStep step)
7>   at Mono.Linker.Pipeline.Process(LinkContext context)
7>   at Mono.Linker.Driver.Run(ILogger customLogger)
7>   at Mono.Linker.Driver.Execute(String[] args, ILogger customLogger)
7>   at Mono.Linker.Driver.Main(String[] args)
7>C:\Users\RichardV\.nuget\packages\microsoft.aspnetcore.components.webassembly.build\3.2.0\targets\Blazor.MonoRuntime.targets(326,5): error : ILLink failed with exit code -532462766.
7>Done building project "Planning.Client.csproj" -- FAILED.


I have already upgraded my .net SDK and was already using blazor webassembly 3.2 successfully - When looking around google regarding this error they seem to point at a wrong setting in a cspropj file somewhere. I am however unable to find anything wrong on my end;

Literally the only changed line in my code base resulting in this error is:

REM    <PackageReference Include="Syncfusion.Blazor" Version="18.1.0.53" />
ADD    <PackageReference Include="Syncfusion.Blazor" Version="18.1.0.54" />

in my Client .cproj project file.


Could you please give a suggestion what I can do to fix this? For now I'm reverting back to SF 18.1.0.53

2 Replies

RI richardv June 4, 2020 02:58 PM UTC

Manually deleting the obj and bin folder in my client project solved this issue! (a VS clean did -not- work, but deleting these folders did)


JA Jesus Arockia Sankaran S Syncfusion Team June 4, 2020 03:36 PM UTC

Hi Richard, 

Thank you for contacting Syncfusion support. 

We are also checking this issue in our end but we are glad to hear that you have managed to resolve this issue in your end.  

Regards, 
Jesus Arockia Sankaran S 


Loader.
Up arrow icon