diff --git a/Wino.BackgroundTasks/AppUpdatedTask.cs b/Wino.BackgroundTasks/AppUpdatedTask.cs index 1a70899f..aadb0107 100644 --- a/Wino.BackgroundTasks/AppUpdatedTask.cs +++ b/Wino.BackgroundTasks/AppUpdatedTask.cs @@ -1,7 +1,12 @@ -using Microsoft.Toolkit.Uwp.Notifications; + using Windows.ApplicationModel; using Windows.ApplicationModel.Background; +#if NET8_0 +using CommunityToolkit.WinUI.Notifications; +#else +using Microsoft.Toolkit.Uwp.Notifications; +#endif namespace Wino.BackgroundTasks { /// diff --git a/Wino.BackgroundTasks/Wino.BackgroundTasks.NET8.csproj b/Wino.BackgroundTasks/Wino.BackgroundTasks.NET8.csproj new file mode 100644 index 00000000..3e22cbd2 --- /dev/null +++ b/Wino.BackgroundTasks/Wino.BackgroundTasks.NET8.csproj @@ -0,0 +1,30 @@ + + + net8.0-windows10.0.19041.0 + 10.0.17763.0 + Wino.BackgroundTasks.NET8 + win-x86;win-x64;win-arm64 + win10-x86;win10-x64;win10-arm64 + true + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Wino.WinUI.sln b/Wino.WinUI.sln index fef06837..370f2dcc 100644 --- a/Wino.WinUI.sln +++ b/Wino.WinUI.sln @@ -11,6 +11,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Wino.Core.NET8", "Wino.Core EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Wino.Core.WinUI", "Wino.Core.UWP\Wino.Core.WinUI.csproj", "{FF3C03F7-4E9B-4333-9A9D-2BB1D1241C56}" EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Wino.BackgroundTasks.NET8", "Wino.BackgroundTasks\Wino.BackgroundTasks.NET8.csproj", "{2C86AF48-F7DD-4EA6-A9A6-610E69287F03}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -33,6 +35,10 @@ Global {FF3C03F7-4E9B-4333-9A9D-2BB1D1241C56}.Debug|Any CPU.Build.0 = Debug|Any CPU {FF3C03F7-4E9B-4333-9A9D-2BB1D1241C56}.Release|Any CPU.ActiveCfg = Release|Any CPU {FF3C03F7-4E9B-4333-9A9D-2BB1D1241C56}.Release|Any CPU.Build.0 = Release|Any CPU + {2C86AF48-F7DD-4EA6-A9A6-610E69287F03}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2C86AF48-F7DD-4EA6-A9A6-610E69287F03}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2C86AF48-F7DD-4EA6-A9A6-610E69287F03}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2C86AF48-F7DD-4EA6-A9A6-610E69287F03}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE