-
Notifications
You must be signed in to change notification settings - Fork 8
/
Directory.Build.props
33 lines (28 loc) · 1.44 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
<Project>
<PropertyGroup>
<RepoRootDirectory>$(MSBuildThisFileDirectory)</RepoRootDirectory>
<BaseIntermediateOutputPath>$(RepoRootDirectory)bin\obj\$(MSBuildProjectName)\</BaseIntermediateOutputPath>
<LangVersion>12.0</LangVersion>
<Authors>SomeAnonDev</Authors>
<Company>Committee of Zero</Company>
<PackageVersion>0.1</PackageVersion>
<Nullable>disable</Nullable>
</PropertyGroup>
<PropertyGroup Condition=" '$(Portable)' == 'true' ">
<DefineConstants>$(DefineConstants);PORTABLE</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(NativeRid)' == 'win-x64' Or ('$(NativeRid)' == '' And '$(Portable)' != 'true' And '$([MSBuild]::IsOsPlatform(`WINDOWS`))' == 'true') ">
<IsWindows>true</IsWindows>
<DefineConstants>$(DefineConstants);WINDOWS</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(NativeRid)' == 'linux-x64' Or ('$(NativeRid)' == '' And '$(Portable)' != 'true' And '$([MSBuild]::IsOsPlatform(`LINUX`))' == 'true') ">
<IsLinux>true</IsLinux>
<IsUnix>true</IsUnix>
<DefineConstants>$(DefineConstants);LINUX;UNIX</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(NativeRid)' == 'osx-x64' Or ('$(NativeRid)' == '' And '$(Portable)' != 'true' And '$([MSBuild]::IsOsPlatform(`OSX`))' == 'true') ">
<IsMacOS>true</IsMacOS>
<IsUnix>true</IsUnix>
<DefineConstants>$(DefineConstants);MACOS;UNIX</DefineConstants>
</PropertyGroup>
</Project>