-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.build.props
42 lines (35 loc) · 2.14 KB
/
Directory.build.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
36
37
38
39
40
41
42
<?xml version="1.0" encoding="UTF-8"?>
<Project>
<!-- Workaround -->
<Target Name="GetPackagingOutputs" />
<PropertyGroup>
<IsWindows Condition=" '$(OS)' == 'Windows_NT'">true</IsWindows>
<IsWindows Condition=" '$(IsWindows)' == '' ">false</IsWindows>
<IsUnix Condition=" '$(OS)' == 'Unix' ">true</IsUnix>
<IsUnix Condition=" '$(IsUnix)' == '' ">false</IsUnix>
<IsOSX>false</IsOSX>
<IsLinux>false</IsLinux>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<PowerShellExe Condition=" '$(PowerShellExe)'=='' And '$(IsWindows)' == 'true' ">powershell.exe</PowerShellExe>
<PowerShellExe Condition=" '$(PowerShellExe)'=='' And '$(IsUnix)' == 'true' ">\usr\local\bin\powershell</PowerShellExe>
<EnableDefaultItems Condition=" '$(EnableDefaultItems)' == '' ">true</EnableDefaultItems>
<EnableDefaultNoneItems Condition=" '$(EnableDefaultNoneItems)' == '' ">true</EnableDefaultNoneItems>
<EnableDefaultXamlItems Condition=" '$(EnableDefaultXamlItems)' == '' ">true</EnableDefaultXamlItems>
<EnableDefaultEmbeddedResourceItems Condition=" '$(EnableDefaultEmbeddedResourceItems)' == '' ">true</EnableDefaultEmbeddedResourceItems>
</PropertyGroup>
<!-- VS4Mac executes using the Mono Runtime & provides no way for us to know -->
<PropertyGroup Condition=" '$(MSBuildRuntimeType)' == 'Mono' ">
<IsOSX>Unknown</IsOSX>
<IsLinux>Unknown</IsLinux>
</PropertyGroup>
<PropertyGroup Condition="'$(MSBuildRuntimeType)' == 'Core'">
<IsOSX Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))' == 'true'">true</IsOSX>
<IsLinux Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))' == 'true'">true</IsLinux>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Mock' ">
<DefineConstants>$(DefineConstants);DEBUG</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<DefineConstants>$(DefineConstants);DISABLE_XAMARINFORMSLIVE</DefineConstants>
</PropertyGroup>
</Project>