Directory.Build.props 1.47 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
  </PropertyGroup>
Martin Finkel's avatar
Martin Finkel committed
17
  <PropertyGroup Condition="$(TargetFramework.StartsWith('Xamarin.Mac'))">
18
    <DefineConstants>$(DefineConstants);MONO;MAC;COCOA</DefineConstants>
19
  </PropertyGroup>
Martin Finkel's avatar
Martin Finkel committed
20 21 22
  <PropertyGroup Condition="$(TargetFramework.StartsWith('Xamarin.TVOS'))">
    <DefineConstants>$(DefineConstants);MONO;TVOS;COCOA</DefineConstants>
  </PropertyGroup>
23
  <PropertyGroup Condition="$(TargetFramework.StartsWith('MonoAndroid'))">
24 25
    <DefineConstants>$(DefineConstants);MONO;ANDROID</DefineConstants>
  </PropertyGroup>
Martin Finkel's avatar
Martin Finkel committed
26 27 28
  <PropertyGroup Condition="$(TargetFramework.StartsWith('uap'))">
    <DefineConstants>$(DefineConstants);UWP;NET</DefineConstants>
  </PropertyGroup>
29
</Project>