Closed timiil closed 1 year ago
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.
Failed to load type 'System.Net.Quic.Implementations.QuicImplementationProvider' from assembly 'System.Net.Quic, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
There was a breaking change in Quic and the version that ASP.NET 6.0 is compiled with is not compatible with the 7.0 ILCompiler package (that contains the new Quic implementation).
You need to target .NET 7 to use Native AOT.
we use the newest version Microsoft.DotNet.ILCompiler 7.0.0-rc.2.22472.3 , just very simple csproject and code here:
src.csproj:
Program.cs:
i am trying use the newest ARM64 cross builder container here:
and then i install dotnet sdk 6 into this contianer , and make the build:
and then , it is show the error / warrning string at last:
the compliation had been done, but when we invoke the executable at a ARM64 ubuntu , it is crash failed by the same exception above:
so, what is the problem here ? i had try to rollback a very old version of Microsoft.DotNet.ILCompiler, which is '7.0.0-alpha.1.21601.1', that everything show very perfecttly OK , everything is DONE.
so , is it the newest version ILCompiler problem ? or ASP.NET problem ? or , just give us some hint how to deal with this ?