forked from peters/ILRepack.MSBuild.Task
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Build.props
46 lines (37 loc) · 2.06 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
43
44
45
46
<Project>
<PropertyGroup>
<LangVersion>7.3</LangVersion>
</PropertyGroup>
<PropertyGroup>
<OsPlatform Condition="$([MSBuild]::IsOsPlatform('Windows'))">Windows</OsPlatform>
<OsPlatform Condition="'$(OsPlatform)' == '' AND !$([MSBuild]::IsOsPlatform('Windows'))">Unix</OsPlatform>
<IsNetCoreApp Condition="$(TargetFramework.StartsWith('netcoreapp'))">true</IsNetCoreApp>
<IsNetCoreApp Condition="'$(IsNetCoreApp)' == ''">false</IsNetCoreApp>
<IsNetStandard Condition="$(TargetFramework.StartsWith('netstandard'))">true</IsNetStandard>
<IsNetStandard Condition="'$(IsNetStandard)' == ''">false</IsNetStandard>
<IsNetFullFramework Condition="'$(IsNetStandard)' == 'false' AND '$(IsNetCoreApp)' == 'false'">true</IsNetFullFramework>
<IsNetFullFramework Condition="'$(IsNetFullFramework)' == ''">false</IsNetFullFramework>
<PackageOutputPath>$(MSBuildThisFileDirectory)nupkgs</PackageOutputPath>
</PropertyGroup>
<PropertyGroup Condition="$(OsPlatform) == 'Windows'">
<DefineConstants>$(DefineConstants);PLATFORM_WINDOWS;</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="$(OsPlatform) == 'Unix'">
<DefineConstants>$(DefineConstants);PLATFORM_UNIX;</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="$(IsNetStandard)">
<DefineConstants>$(DefineConstants);NETSTANDARD;</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="$(IsNetCoreApp)">
<DefineConstants>$(DefineConstants);NETCOREAPP;NET_CORE;</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="$(IsNetFullFramework)">
<DefineConstants>$(DefineConstants);NETFULLFRAMEWORK;</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="$(IsNetFullFramework) AND '$(TargetFramework)' == 'net461'">
<DefineConstants>$(DefineConstants);NET461;</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<DefineConstants>$(DefineConstants);DEBUG</DefineConstants>
</PropertyGroup>
</Project>