-
Notifications
You must be signed in to change notification settings - Fork 758
/
Directory.Build.targets
29 lines (24 loc) · 1.17 KB
/
Directory.Build.targets
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
<Project>
<!-- This file prevents the auto-import of the .targets file from the parent folder. -->
<!-- Enable nullable support for C# 9 targets (minimum threshold for nullable support) -->
<Choose>
<When Condition=" '$(LangVersion)' == '9.0' ">
<PropertyGroup>
<!--
This is stuck to version 6.0.25 of the reference libraries because of a bug in RAA that only seems
to surface with the nullable-mixed project.
-->
<AnnotatedReferenceAssemblyVersion>6.0.25</AnnotatedReferenceAssemblyVersion>
<!-- On non-Windows, NuGet reports Microsoft.NETCore.App.Ref as being double-imported -->
<NoWarn>$(NoWarn);NU1505</NoWarn>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="TunnelVisionLabs.ReferenceAssemblyAnnotator" Version="$(TunnelVisionLabsReferenceAssemblyAnnotatorVersion)">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageDownload Include="Microsoft.NETCore.App.Ref" Version="[6.0.25]" />
</ItemGroup>
</When>
</Choose>
</Project>