AOT-compatible Microsoft.Azure.Devices.Client
michalczerwinski opened this issue · 1 comments
michalczerwinski commented
I tried to use AOT-compiled .NET 8 with ModuleClient but it failed:
- it builds with warnings about Newtonsoft.Json.dll, DotNetty.Transport.dll and Microsoft.Azure.Amqp.dll
- in runtime I got
Unhandled Exception: Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmComunicationException: Error calling GetTrustBundleWithRetry
After closer examination this is due to old json serializer used here:
Is there any roadmap for AOT-compatible Microsoft.Azure.Devices.Client ?
timtay-microsoft commented
We don't have any plans to support AOT compiled applications at this time. We also don't plan on migrating away from Newtonsoft in the near future either, unfortunately.