Szerkesztés

Megosztás a következőn keresztül:


Experimental channel release notes for the Windows App SDK 1.2

Important

The experimental channel is not supported for use in production environments, and apps that use the experimental releases cannot be published to the Microsoft Store.

The experimental channel provides releases of the Windows App SDK that include experimental channel features that are in early stages of development. APIs for experimental features have the Experimental attribute. If you call an experimental API in your code, you will receive a build-time warning. All APIs in the experimental channel might have breaking changes in future releases, but experimental APIs are especially subject to change. Experimental features may be removed from the next release, or may never be released.

Important links:

Latest experimental channel release:

Latest stable channel release:

Version 1.2 Experimental (1.2.0-experimental2)

This is the latest release of the experimental channel. It supports all experimental channel features and features from Version 1.2 Preview 1 (1.2.0-preview1).

To download, retarget your WinAppSDK NuGet version to 1.2.220909.2-experimental2.

Fixed issue

In upcoming Windows Insider Preview builds, applications using Windows App SDK would fail to launch.

Version 1.2 Experimental (1.2.0-experimental1)

This is the latest release of the experimental channel. It supports all experimental channel features.

To download, retarget your WinAppSDK NuGet version to 1.2.220727.1-experimental1.

Input & Composition

First introduced in Windows App SDK 0.8, there are several experimental classes in the Microsoft.UI.Input.Experimental & Microsoft.UI.Composition.Experimental namespaces.

New to this release:

Content

New to this release, the experimental classes in the Microsoft.UI.Content namespace provide the building blocks of interactive content. These are low level primitives that can be assembled into content to provide the interactive experience for an end user. The content defines the structure for: rendering output with animations, processing input on different targets, providing accessibility representation, and handling host state changes.

Notable APIs:

  • ContentIsland - brings together Output, Input, and Accessibility and provides the abstraction for interactive content. A custom visual tree can be constructed and made interactive with these APIs.
  • DesktopChildSiteBridge - enables a ContentIsland to be connected into an HWND-based hierarchy.

Check out the sample on GitHub for more information.

Dispatching

DispatcherQueue now dispatches as reentrant. Previously, no more than a single DispatcherQueueHandler callback could be active on a single thread at a time. Now, if a handler starts a nested message pump, additional callbacks dispatch as reentrant. This matches Win32 behavior around window messages and nested message pumps.

Notifications

Registering app display name and icon for app notification is now supported. Check out the spec on GitHub for additional information.

WinUI 3

  • Controls and styles are up to date with the WinUI 2.8 release.
  • UWP is no longer supported in the experimental releases.

Other limitations and known issues

  • Apps need to be rebuilt after updating to Windows App SDK 1.2-experimental1 due to a breaking change introduced in the ABI.
  • Apps that reference a package that depends on WebView2 (like Microsoft.Identity.Client) fail to build. This is caused by conflicting binaries at build time. See issue 2492 on GitHub for more information.
  • Using dotnet build with a WinAppSDK C# class library project may see a build error "Microsoft.Build.Packaging.Pri.Tasks.ExpandPriContent task could not be loaded". To resolve this issue set <EnableMsixTooling>true</EnableMsixTooling> in your project file.
  • The default WinAppSDK templates note that the MaxVersionTested="10.0.19041.0" when it should be "10.0.22000.0". For full support of some features, notably UnlockedDEHs, update the MaxVersionTested to "10.0.22000.0" in your project file.