Windows App SDK 2.0 (2.0.1) 🎉 #6438
agniuks
started this conversation in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
WinAppSDK 2.0 is the next major release of the Windows App SDK, the first major version update since 1.0 (November 2021) and the first release on the new Semantic Versioning scheme. It ships new XAML capabilities, a modernized Storage Pickers surface, expanded popup and anchoring APIs in
Microsoft.UI.Content, a new package deployment and validation framework, a refactored Windows ML stack, and additions across the Windows AI surface.What's new in WinAppSDK 2.0:
Microsoft.Windows.Management.Deploymentnamespace adds a newIPackageValidatorframework with three built-in validators (PackageCertificateEkuValidator,PackageFamilyNameValidator,PackageMinimumVersionValidator), plus a newPackageVolumeAPI for managing the storage volumes that packages are staged onto.Microsoft.Windows.AI.MachineLearning, with a minimal set of dependencies that supports apps down to Windows 10 v1903. The existingMicrosoft.WindowsAppSDK.MLpackage continues to support Windows 10 v1809. The included ONNX Runtime version has been updated to 1.24.5.AIFeatureReadyStatevalues (CapabilityMissing,NotCompatibleWithSystemHardware,OSUpdateNeeded) help apps explain transient and durable failures during AI model acquisition so users get actionable guidance instead of a generic "not ready" condition. Phi Silica APIs are now enforced as part of a Limited Access Feature (LAF); see Phi Silica for details.Microsoft.Windows.Storage.PickersAPI (introduced in 1.8) is extended with file type choice grouping, persistent settings identifiers, suggested start folders, custom titles, multi-folder picking, and more, acrossFileOpenPicker,FileSavePicker, andFolderPicker.SystemBackdropElementis a new lightweightFrameworkElementthat lets apps place a system backdrop such as Mica or Acrylic anywhere within the XAML layout, with aCornerRadiusproperty for rounded backdrop areas. It closes a long-standing WinUI 3 gap where in-app acrylic effects (previously straightforward in WinUI 2 viaAcrylicBrush.BackgroundSource) had no direct equivalent.IXamlCondition) enable developers to define custom conditions that integrate with XAML's conditional namespace syntax and are evaluated at XAML parse time. This replaces the experimentalIXamlPredicateinterface and unlocks conditional XAML based on feature flags, device capabilities, business logic, configuration settings, and other runtime conditions.Microsoft.UI.Content. The newPopupAnchorAPI allowsDesktopPopupSiteBridgeto anchor to its owning window or island instead of being limited to absolute screen coordinates, with newAnchoringBehaviorandAnchoringPixelAlignmentproperties to control the behavior.Notable bug fixes:
MSB8027andLNK4042build warnings caused by duplicateClCompileitems in Windows App SDK NuGet.targetsfiles.CoreWebView2Controllerwhile the controller was not visible.RegisterCertifiedAsyncagain in the same process incorrectly returned 0 execution providers (EP).To see everything that's new and changed, including upgrade guidance and known issues, see the full Windows App SDK 2.0 release notes.
Try it out
Getting started
To get started using Windows App SDK to develop Windows apps, check out the following documentation:
This discussion was created from the release Windows App SDK 2.0 (2.0.1) 🎉.
Beta Was this translation helpful? Give feedback.
All reactions