Skip to content

Commit

Permalink
feat: IsApiContractPresent detects Uno.WinUI package
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjohnoliver committed Aug 1, 2020
1 parent 5018d19 commit b383c42
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Uno.Foundation/Metadata/ApiInformation.shared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ public static bool IsApiContractPresent(string contractName, ushort majorVersion
// See https://docs.microsoft.com/en-us/uwp/extension-sdks/windows-universal-sdk
return majorVersion <= 6; // SDK 10.0.17134.1

case "Uno.WinUI":
#if HAS_UNO_WINUI
return true;
#else
return false;
#endif
default:
return false;
}
Expand Down

0 comments on commit b383c42

Please sign in to comment.