Directory.Build.props 1.58 KB
Newer Older
1 2
<Project>
  <PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
Martin Finkel's avatar
Martin Finkel committed
3
    <DefineConstants>$(DefineConstants);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
  <PropertyGroup Condition="'$(TargetFramework)' == 'net40'">
Jérémy VIGNELLES's avatar
Jérémy VIGNELLES committed
9 10 11 12
    <DefineConstants>$(DefineConstants);NET40;NET</DefineConstants>
  </PropertyGroup>
  <PropertyGroup Condition="'$(TargetFramework)' == 'net471'">
    <DefineConstants>$(DefineConstants);NET471;NET</DefineConstants>
13
  </PropertyGroup>
14
  <PropertyGroup Condition="$(TargetFramework.StartsWith('Xamarin.iOS'))">
Martin Finkel's avatar
Martin Finkel committed
15
    <DefineConstants>$(DefineConstants);IOS;APPLE</DefineConstants>
16
  </PropertyGroup>
Martin Finkel's avatar
Martin Finkel committed
17
  <PropertyGroup Condition="$(TargetFramework.StartsWith('Xamarin.Mac'))">
Martin Finkel's avatar
Martin Finkel committed
18
    <DefineConstants>$(DefineConstants);MAC;APPLE</DefineConstants>
19
  </PropertyGroup>
Martin Finkel's avatar
Martin Finkel committed
20
  <PropertyGroup Condition="$(TargetFramework.StartsWith('Xamarin.TVOS'))">
Martin Finkel's avatar
Martin Finkel committed
21
    <DefineConstants>$(DefineConstants);TVOS;APPLE</DefineConstants>
Martin Finkel's avatar
Martin Finkel committed
22
  </PropertyGroup>
23
  <PropertyGroup Condition="$(TargetFramework.StartsWith('MonoAndroid'))">
Martin Finkel's avatar
Martin Finkel committed
24
    <DefineConstants>$(DefineConstants);ANDROID</DefineConstants>
25
  </PropertyGroup>
Martin Finkel's avatar
Martin Finkel committed
26 27 28
  <PropertyGroup Condition="$(TargetFramework.StartsWith('uap'))">
    <DefineConstants>$(DefineConstants);UWP;NET</DefineConstants>
  </PropertyGroup>
29 30 31
  <PropertyGroup Condition="'$(TargetFramework)' == 'uap10.0'">
    <DefineConstants>$(DefineConstants);UWP10_0</DefineConstants>
  </PropertyGroup>
32
</Project>