-
Notifications
You must be signed in to change notification settings - Fork 13
/
Directory.Build.props
28 lines (23 loc) · 1.58 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
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<IsRunningTests Condition="'$(IsRunningTests)' == ''">false</IsRunningTests>
<PackageOutputPath>$(MSBuildThisFileDirectory)nupkgs</PackageOutputPath>
<OsPlatform Condition="$(OsPlatform) == '' AND '$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' == 'true'">Windows</OsPlatform>
<OsPlatform Condition="$(OsPlatform) == '' AND '$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))' == 'true'">Unix</OsPlatform>
<OsPlatform Condition="$(OsPlatform) == '' AND '$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))' == 'true'">MACOS</OsPlatform>
<OsPlatform Condition="$(OsPlatform) == ''">Unknown</OsPlatform>
</PropertyGroup>
<PropertyGroup Condition="$(IsRunningTests)">
<DefineConstants>$(DefineConstants);IS_RUNNING_TESTS</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="$(OsPlatform) == 'Windows'">
<DefineConstants>$(DefineConstants);PLATFORM_WINDOWS</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="$(OsPlatform) == 'Unix'">
<DefineConstants>$(DefineConstants);PLATFORM_UNIX</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="$(OsPlatform) == 'MACOS'">
<DefineConstants>$(DefineConstants);PLATFORM_MACOS</DefineConstants>
</PropertyGroup>
</Project>