Directory.Build.props 1.15 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
  <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);MONO;IOS;COCOA</DefineConstants>
16 17
  </PropertyGroup>
  <PropertyGroup Condition="'$(TargetFramework)' == 'Xamarin.Mac20'">
18
    <DefineConstants>$(DefineConstants);MONO;MAC;COCOA</DefineConstants>
19
  </PropertyGroup>
20
  <PropertyGroup Condition="$(TargetFramework.StartsWith('MonoAndroid'))">
21 22 23
    <DefineConstants>$(DefineConstants);MONO;ANDROID</DefineConstants>
  </PropertyGroup>
</Project>