Background tasks with Native AOT #6066
-
|
I'm looking to use Native AOT for my app, but unfortunately, I am having some issues with the background tasks. I have the same code from the out of process BackgroundTask example at WindowsAppSDK-Samples and it raised the following exception:
I tried some suggestions I found on the web, such adding [GeneratedComInterface]
[Guid("A GUID")]
public partial interface IBackgroundServerTaskCom : IBackgroundTask
{
}And make Unfortunately, that did not work as I faced the same error. I there anyway to achieve NativeAOT on out of process backgroundTasks? cc: @godlytalias |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
@manodasanW @Scottj1s can answer regarding plan for NativeAOT |
Beta Was this translation helpful? Give feedback.
-
|
If you have experience with UWP, this might be of help to you.microsoft-ui-xaml#9983 |
Beta Was this translation helpful? Give feedback.
-
|
@Diegorro98 Did you try adding this? |
Beta Was this translation helpful? Give feedback.
@Diegorro98 Did you try adding this?
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>Per:
https://learn.microsoft.com/en-us/dotnet/core/deploying/trimming/trimming-options#framework-features-disabled-when-trimming