+38/050/370-3627
+38/093/220-0872
+38/044/257-2444
Новости

Microsoft опубликовала инструкцию о переносе UWP-приложения на Windows App SDK (Project Reunion)

Microsoft опубликовала инструкцию о переносе UWP-приложения на Windows App SDK (Project Reunion)

Microsoft опубликовала инструкцию для разработчиков о переносе существующих UWP-приложений на Windows App SDK (Project Reunion), который основан на классической платформе Win32. Это может быть полезно в том случае, если приложению необходимы функции и API, которые отсутствуют в платформе UWP, но доступны в Windows App SDK.

Поддержка UWP-приложений не прекращается, так что разработчики могут сами решать, какую платформу следует использовать для того или иного проекта. «Если вас устраивают текущие функциональные возможности UWP, то нет необходимости переходить на другой тип проекта». Отмечается, что Windows также продолжит использовать UWP там, где это имеет смысл.

Если вы являетесь разработчиком UWP-приложений и хотите использовать последние наработки WinUI 3 и .NET 5/6 (и более новых версий), то вам необходимо портировать свой проект на Windows App SDK. В дальнейшем платформа UWP будет получать только исправления ошибок и улучшения безопасности, и не будет иметь доступа к новым API. Можно сказать, что этой инструкцией Microsoft подтвердила «смерть» платформы UWP.

The Windows App SDK provides a broad set of Windows APIs—with implementations that are decoupled from the OS, and released to developers via NuGet packages. As a developer with a Universal Windows Platform (UWP) application, you can make great use of your existing skill set, and your source code, by moving your app to the Windows App SDK.

With the Windows App SDK you can incorporate the latest runtime, language, and platform features into your app. Since each application is different, and so are your requirements and preferences, there are many different ways to approach the process of migrating your app's source code. But the high-level approach, and code changes needed for various feature areas, are similar. So in this topic we'll review strategies on how you can approach migrating your app, as well as more info (and limitations) about certain feature areas. So also see What is supported when when porting from UWP to WinUI 3.

Most Windows Runtime (WinRT) APIs can be used by Windows App SDK apps. But there are some that aren't supported in desktop apps, or have restrictions.

  • APIs that have dependencies on UI features that were designed for use only in UWP apps.
  • APIs that require package identity. These APIs are supported only in desktop apps that are packaged using MSIX.

For those APIs, we'll show your what alternatives to use. Most of those alternatives are available in the Windows UI Library (WinUI), or via WinRT COM interfaces that are available in the Windows App SDK.

Другие новости

Лучшая цена