Skip to content

Commit

Permalink
feat: Add missing contracts to ApiInformation
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinZikmund committed Dec 20, 2024
1 parent 9fefd3a commit 0fe8895
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Uno.Foundation/Metadata/ApiInformation.shared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ public static bool IsApiContractPresent(string contractName, ushort majorVersion
// See C:\Program Files (x86)\Windows Kits\10\References\[version]\Microsoft.UI.Xaml.Hosting.HostingContract
return majorVersion <= 5; // SDK 10.0.22000.0

case "Microsoft.Windows.ApplicationModel.Resources.MrtCoreContract":
// See .nuget\packages\microsoft.windowsappsdk\1.6.241114003\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.ApplicationModel.Resources.Projection.dll
return majorVersion <= 1; // WinAppSDK 1.6.241114003

case "Microsoft.Windows.AppLifecycle.AppLifecycleContract":
// See .nuget\packages\microsoft.windowsappsdk\1.6.241114003\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.AppLifecycle.Projection.dll
return majorVersion <= 1; // WinAppSDK 1.6.241114003

case "Uno.WinUI":
#if HAS_UNO_WINUI
return true;
Expand Down

0 comments on commit 0fe8895

Please sign in to comment.