This repository has been archived by the owner on Feb 23, 2021. It is now read-only.
/
Config.Definitions.Props
35 lines (35 loc) · 1.87 KB
/
Config.Definitions.Props
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|ARM">
<Configuration>Debug</Configuration>
<Platform>ARM</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|ARM">
<Configuration>Release</Configuration>
<Platform>ARM</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup>
<!-- Enables building using Win10 SDK (One Core, ARM) on non-Win10 OS'es -->
<WindowsTargetPlatformVersion Condition="'$(BuildForOneCore)' == 'True' Or '$(Platform)'=='ARM'">$([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0', 'ProductVersion', null, RegistryView.Registry64, RegistryView.Registry32))</WindowsTargetPlatformVersion>
<!-- The Win10 SDK versions before 10.0.10586.0 had only 3 parts (e.g. 10.0.10240) so `.0` needs to be appended -->
<WindowsTargetPlatformVersion Condition="'$(WindowsTargetPlatformVersion)' != '' And '$(WindowsTargetPlatformVersion.Split(".").Length)' == '3'">$(WindowsTargetPlatformVersion).0</WindowsTargetPlatformVersion>
</PropertyGroup>
</Project>