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

Does not run with Native AOT #352

Closed
denys-volodarskyi opened this issue Oct 10, 2023 · 3 comments
Closed

Does not run with Native AOT #352

denys-volodarskyi opened this issue Oct 10, 2023 · 3 comments

Comments

@denys-volodarskyi
Copy link

denys-volodarskyi commented Oct 10, 2023

There seems to be some reflection issue to run project with PublishAot enabled.

Throws exception on

await Bluetooth.RequestDeviceAsync()
@peterfoot
Copy link
Member

Can you provide more information on platform, version, your Linker/Trimming options etc

@denys-volodarskyi
Copy link
Author

denys-volodarskyi commented Oct 11, 2023

It's Windows with DotNet Preview. Maybe it's actually AOT compiler issue. I use default options.

I've created test application:
https://github.com/denys-volodarskyi/Test_BLE_GUI

@denys-volodarskyi
Copy link
Author

denys-volodarskyi commented Oct 13, 2023

Seems problem is Windows APP SDK does not completely support NativeAOT yet.
dotnet/maui#17713
microsoft/WindowsAppSDK#3887

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants