Directory.Build.props 1.46 KB
Newer Older
1 2
<Project>
  <PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
Martin Finkel's avatar
Martin Finkel committed
3
    <DefineConstants>$(DefineConstants);PORTABLE;NETSTANDARD2_0;NETSTANDARD</DefineConstants>
4
  </PropertyGroup>
5
  <PropertyGroup Condition="'$(TargetFramework)' == 'netstandard1.1'">
Martin Finkel's avatar
Martin Finkel committed
6
    <DefineConstants>$(DefineConstants);NETSTANDARD1_1;NETSTANDARD</DefineConstants>
7
  </PropertyGroup>
Martin Finkel's avatar
Martin Finkel committed
8 9
  <PropertyGroup Condition="'$(TargetFramework)' == 'net40'">
    <DefineConstants>$(DefineConstants);NET40</DefineConstants>
10 11 12 13 14 15
  </PropertyGroup>
  <PropertyGroup Condition="'$(TargetFramework)' == 'uap10.0.16299'">
    <DefineConstants>$(DefineConstants);NETFX_CORE;XAML;WINDOWS_UWP;WINDOWS</DefineConstants>
    <TargetPlatformVersion>10.0.16299.0</TargetPlatformVersion>
    <TargetPlatformMinVersion>10.0.16299.0</TargetPlatformMinVersion>
  </PropertyGroup>
16
  <PropertyGroup Condition="$(TargetFramework.StartsWith('Xamarin.iOS'))">
Martin Finkel's avatar
Martin Finkel committed
17
    <DefineConstants>$(DefineConstants);MONO;IOS;COCOA</DefineConstants>
18 19
  </PropertyGroup>
  <PropertyGroup Condition="'$(TargetFramework)' == 'Xamarin.Mac20'">
20
    <DefineConstants>$(DefineConstants);MONO;MAC;COCOA</DefineConstants>
21 22 23 24
  </PropertyGroup>
  <PropertyGroup Condition="'$(TargetFramework)' == 'Xamarin.TVOS10'">
    <DefineConstants>$(DefineConstants);MONO;COCOA</DefineConstants>
  </PropertyGroup>
25
  <PropertyGroup Condition="$(TargetFramework.StartsWith('MonoAndroid'))">
26 27 28
    <DefineConstants>$(DefineConstants);MONO;ANDROID</DefineConstants>
  </PropertyGroup>
</Project>