Big Data

Bringing Universal Windows Platform apps to .NET 9



Bringing UWP to the Windows App SDK

Updating UWP applications to the Windows App SDK takes time, especially if you’re relying on third-party libraries and components that haven’t been updated to it or to Win UI 3. Although you can still distribute them through the Microsoft Store, you’re shut out from features like native AOT.

Microsoft would certainly like you to update your code to the latest version of the .NET stack, but it’s keenly aware of the difficulties. What’s needed is a way to take that existing code and run it on the latest .NET, changing what you can as you have the time and resources. That’s why it’s launched a set of tools to add UWP support to the upcoming .NET 9.

UWP support for .NET 9 isn’t a “one button” solution. Instead, it’s a mix of tools that work at different layers of the .NET development stack, in Visual Studio, in the Windows SDK, and in .NET itself. Together they provide the necessary scaffolding to bring across your existing C# code and start the migration process to the Windows App SDK, while still letting your users see some of the advantages of a more modern platform. Updates to newer technologies can be incremental, for example, developing a Win UI user experience while retaining some functionality in XAML Islands. As a result you’re actually taking advantage of a public release of tools that Microsoft is using for its own app updates, with the Microsoft Store working with these tools to deliver a native AOT version in the near future—most likely in November, after .NET 9 reaches general availability and gets support.



READ SOURCE

This website uses cookies. By continuing to use this site, you accept our use of cookies.