-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Expand file tree
/
Copy pathDirectory.Build.targets
More file actions
30 lines (24 loc) · 1.26 KB
/
Directory.Build.targets
File metadata and controls
30 lines (24 loc) · 1.26 KB
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
<Project>
<!-- Define SYSTEM_DRAWING and HAS_SPAN -->
<PropertyGroup>
<DefineConstants Condition="'$(TargetFramework)' != 'netstandard1.3'">$(DefineConstants);SYSTEM_DRAWING</DefineConstants>
<DefineConstants Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'netcoreapp2.1')) OR '$(TargetFramework)' == 'netstandard2.1'">$(DefineConstants);HAS_SPAN</DefineConstants>
</PropertyGroup>
<!-- Strong name signing for Release builds of packable projects -->
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<SignAssembly>true</SignAssembly>
<DelaySign>false</DelaySign>
</PropertyGroup>
<!-- Suppress XML comment warnings for non-packable projects -->
<PropertyGroup Condition="'$(IsPackable)' != 'true'">
<NoWarn>$(NoWarn);CS1591</NoWarn>
</PropertyGroup>
<!-- Normalize file paths for releases -->
<PropertyGroup>
<ContinuousIntegrationBuild Condition="'$(Configuration)' == 'Release' AND '$(GITHUB_ACTIONS)' == 'true'">true</ContinuousIntegrationBuild>
</PropertyGroup>
<!-- Remove System.Threading.Tasks as implicit using since it does not exist in .NET Framework 3.5 -->
<ItemGroup Condition="'$(TargetFramework)' == 'net35'">
<Using Remove="System.Threading.Tasks" />
</ItemGroup>
</Project>