-
Notifications
You must be signed in to change notification settings - Fork 430
Expand file tree
/
Copy pathMicrosoft.WindowsAppSDK.Base.props
More file actions
23 lines (20 loc) · 1.48 KB
/
Microsoft.WindowsAppSDK.Base.props
File metadata and controls
23 lines (20 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!--
Copyright (c) Microsoft Corporation. Licensed under the MIT License
-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<PrepareForBuildDependsOn>$(PrepareForBuildDependsOn);WindowsAppSDKVerifyKitVersion</PrepareForBuildDependsOn>
</PropertyGroup>
<Target Name="WindowsAppSDKVerifyKitVersion" Condition="'$(WindowsAppSDKVerifyKitVersion)'!='false' and '@(Midl)'!=''">
<PropertyGroup>
<WindowsAppSDKAtLeast22000>false</WindowsAppSDKAtLeast22000>
<WindowsAppSDKAtLeast22000 Condition="'$(TargetPlatformVersion)' >= '10.0.22000.0'">true</WindowsAppSDKAtLeast22000>
</PropertyGroup>
<ItemGroup>
<!-- Checking if any component packages are experimental such as Microsoft.WindowsAppSDK[.Component].<ver>-experimental or Microsoft.WindowsAppSDK[.Component]\<ver>-experimental. -->
<!-- The regex doesn't directly check if it is experimental, but rather if it is not a preview or a stable build (with or without -stable suffix) to allow for components to use other suffixes. -->
<_ExperimentalPackages Include="@(WindowsAppSdkComponentPackages)" Condition="$([System.Text.RegularExpressions.Regex]::IsMatch('%(Identity)', 'Microsoft\.WindowsAppSDK([.\\][^\\]*)*-(?!stable)(?!preview)'))" />
</ItemGroup>
<Error Condition="$(WindowsAppSDKAtLeast22000) != 'true' and '@(_ExperimentalPackages)' != ''" Text="This version of Windows App SDK requires Windows SDK version 10.0.22000.0 or later." />
</Target>
</Project>