Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AOT-compatible Microsoft.Azure.Devices.Client #3398

Closed
michalczerwinski opened this issue Nov 27, 2023 · 1 comment
Closed

AOT-compatible Microsoft.Azure.Devices.Client #3398

michalczerwinski opened this issue Nov 27, 2023 · 1 comment
Labels
enhancement New feature or request. IoTSDK Tracks all IoT SDK issues across the board

Comments

@michalczerwinski
Copy link

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:

image

Is there any roadmap for AOT-compatible Microsoft.Azure.Devices.Client ?

@michalczerwinski michalczerwinski added the enhancement New feature or request. label Nov 27, 2023
@github-actions github-actions bot added the IoTSDK Tracks all IoT SDK issues across the board label Nov 27, 2023
@timtay-microsoft
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request. IoTSDK Tracks all IoT SDK issues across the board
Projects
None yet
Development

No branches or pull requests

2 participants