You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
analyzer will warn you if you have a code which is not supported in AOT.
2.mark your classes with partial keyword
3.for p/invoke stuff use CSWin32 nuget package (or use LibraryImport instead of DllImport)
add a NativeMethods.json file with following config: (marshaling should be disabled for p/invoke stuff)
Refer to the following two documents:
https://learn.microsoft.com/zh-cn/windows/apps/windows-app-sdk/stable-channel#version-16
https://learn.microsoft.com/zh-cn/dotnet/core/deploying/native-aot/?tabs=windows%2Cnet9plus#publish-native-aot-using-the-cli
Can you provide more detailed information on how to use AOT to implement WinUI3 compilation normally?
The text was updated successfully, but these errors were encountered: