-
Notifications
You must be signed in to change notification settings - Fork 107
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
Need working sample for OOP Background Task used in WinUI3 / WindowsAppSDK app #1327
Comments
Here is my sample: https://github.com/Osirisoo0O/WASDKSample |
@Osirisoo0O thank you. With that, I at least know it works. I did have to change the following for it to work for me: changed changed to
Now the remaining things to address:
Related: #1243 |
@myokeeh I think your remaining errors can be addressed by moving your projects to the same version of WinAppSDK. It seems one is using 1.3 while other is on 1.0? |
@manodasanW The only project referencing WindowsAppSDK is the app. The other two projects are just the background task and a class library. The WinUI3 app and class library were generated with Template Studio. |
@myokeeh Try to delete WindowsAppSDK 1.0 nuget? |
@Osirisoo0O I've cleared my Nuget cache and just manually deleted "microsoft.windowsappsdk\1.0.0", but rebuilding the solution brings it back. How do I tell it to ignore 1.0.0? Also, in your sample, you have 'Microsoft.Windows.SDK.BuildTools' Is that needed? I removed it on your sample and it still seems to work fine. I added it to my project to try--did not help. |
Maybe the problem from Template Studio. |
For reference, when the task project is not referenced in the app project, it builds without errors. Errors show up when it is. |
Removing the |
I put back
Adding the following is what causes the APPX1101 errors to come back:
|
The fix is adding a
|
I am really struggling to get a working OOP background task in a UWP app I'm trying to convert over to WinUI3 / WIndowsAppSDK.
Please provide a working sample.
I've tried following through the sample and referenced docs, but I still can't get it to display a simple toast notification.
Also, how can I debug the OOP background task? The way I know how to do it with the old UWP version no longer works.
The text was updated successfully, but these errors were encountered: