Microsoft release Windows App SDK 1.0 Preview 3 with support for WinUI 3 apps without MSIX
4 min. read
Published on
Read our disclosure page to find out how can you help MSPoweruser sustain the editorial team Read more
Microsoft has just released Windows App SDK 1.0.0-Preview3, a toolkit that empowers desktop app developers to build apps with a modern Windows UI, APIs, and platform features.
[lwptoc title=”WindowsAppSDK 1.0 preview 3″ width=”30%” float=”right”]
WinUI 3
The main new feature with version 1.0.0-Preview 3 of the SDK is support for deploying WinUI 3 apps without MSIX-packaging. Please view Instructions for WinUI 3 unpackaged desktop appsย to configure your WinUI 3 application to support unpackaged deployment.
Known issues:
- Unpackaged WinUI 3 applications areย only supported on Windows versions 1909 and later.
- Unpackaged WinUI 3 applications areย supported on x86 and x64,ย arm64 support will be added in the next stable release.
- Single-project MSIX Packaging Toolsย forย VS 2019ย orย VS 2022ย is required for unpackaged apps.
- In an unpackaged app, you may receive a prompt to install .NET 3.5; if you do, you can ignore it.
- Some APIs are not currently supported in unpackaged apps. We are aiming to fix this in the next stable release. A few examples:
- ApplicationData
- StorageFile.GetFileFromApplicationUriAsync
- ApiInformationย (not supported on Windows 10)
- Package.Current
- ListView, CalendarView, and GridView controls are using the incorrect styles and we are aiming to fix this in the next stable release.
For more information or to get started developing with WinUI, see:
Other limitations and known issues
- Unpackaged apps not supported on Windows 10 version 1809: We are aiming to fix this in the next stable release.
- C# Single-project MSIX app doesn’t compile if C++ UWP Tools aren’t installed: If you have a C# Single-project MSIX project, you will need to install theย C++ (v14x) Universal Windows Platform Toolsย optional component.
- This release introduces theย Blank App, Packaged (WinUI 3 in Desktop)ย templates for C# and C++ projects. These templates enable you toย build your app into an MSIX package without the use of a separate packaging project. These templates have some known issues in this release:
- Missing Publish menu item until you restart VS: When creating a new app in both VS 2019 and VS 2022 using theย Blank App, Packaged (WinUI 3 in Desktop)ย project template, the command to publish the project does not appear in the menu until you you close and re-open Visual Studio.
- Error when adding C++ static/dynamic library project references to C++ apps using Single-project MSIX Packaging: Visual Studio displays an error that the project cannot be added as a reference because the project types are not compatible.
- Error when referencing a custom user control in a class library project: The application will crash with the error that the system cannot find the path specified.
- C# template for Visual Studio 2019.ย You will encounter the error when you try to build the project: “The project doesn’t know how to run the profileย project name“. To resolve this issue, install theย Single-project MSIX Packaging Tools extension.
- C# template for Visual Studio 2019 and Visual Studio 2022.ย You will encounter the following error when you try to run or debug your project on your development computer: “The project needs to be deployed before we can debug. Please enable Deploy in the Configuration Manager.” To resolve this issue, enable deployment for your project inย Configuration Manager. For detailed instructions, see theย instructions for creating a WinUI 3 desktop app with C# and the Windows App SDK 1.0 Preview 2.
- C++ template for Visual Studio 2022 version 17.0 releases up to Preview 4.ย You will encounter the following error the first time you try to run your project: “There were deployment errors”. To resolve this issue, run or deploy your project a second time. This issue will be fixed in Visual Studio 2022 version 17.0 Preview 7.
- No support for Any CPU build configuration: Whenย adding the Windows App SDKย to an existing .NET application or component that supportsย Any CPU, you must specify the desired architecture:ย
x86
,ยx64
ย orยarm64
. - C# projects using 1.0 Preview 3 must use the following .NET SDK: .NET 5 SDK version 5.0.400 or later if you’re using Visual Studio 2019 version 16.11.
- If you want toย
co_await
ย on theย DispatcherQueue.TryEnqueueย method, use theย resume_foregroundย helper function in theย Windows Implementation Library (WIL):- Add a reference toย Microsoft.Windows.ImplementationLibraryย NuGet package.
- Add theย
#include <wil/cppwinrt.h>
ย statement to your code file. - Useย
wil::resume_foreground(your_dispatcher);
ย toยco_await
ย the result.
Read more and find the download links at Microsoft here.
User forum
0 messages