-
-
Notifications
You must be signed in to change notification settings - Fork 71
Expand file tree
/
Copy pathDirectory.Build.targets
More file actions
26 lines (24 loc) · 1.58 KB
/
Copy pathDirectory.Build.targets
File metadata and controls
26 lines (24 loc) · 1.58 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
<Project>
<!-- https://www.nuget.org/packages/Microsoft.CodeAnalysis.Analyzers/ -->
<!-- https://www.nuget.org/packages/Microsoft.CodeAnalysis.CSharp.Workspaces/ -->
<!-- https://learn.microsoft.com/en-us/visualstudio/extensibility/roslyn-version-support?WT.mc_id=DT-MVP-5003978 -->
<!-- https://learn.microsoft.com/en-us/visualstudio/releases/2026/servicing-vs?WT.mc_id=DT-MVP-5003978#support-for-older-versions -->
<!-- Visual Studio 2022: 4.14 (Lifecycle stage "Extended" is not considered) -->
<!-- .NET SDK 8.0.129: 4.8 -->
<!-- Minimum version to support: 4.8 -->
<!-- The version of the packages is derived from RoslynVersion, see the Directory.Build.props of the repository root -->
<ItemGroup>
<PackageReference Update="Microsoft.CodeAnalysis.CSharp" Version="$(RoslynPackageVersion)" />
<PackageReference Update="Microsoft.CodeAnalysis.Workspaces.Common" Version="$(RoslynPackageVersion)" />
<PackageReference Update="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="$(RoslynPackageVersion)" />
</ItemGroup>
<!-- The nullable annotations of the Roslyn APIs change from one version to another, and the code is written against
the default version, so the warnings of the other versions are noise -->
<PropertyGroup Condition="'$(RoslynVersion)' != '$(DefaultRoslynVersion)'">
<NoWarn>$(NoWarn);nullable</NoWarn>
</PropertyGroup>
<!-- disable the nullable warnings when compiling for .NET Standard 2.0 -->
<PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<NoWarn>$(NoWarn);nullable;IDE0370</NoWarn>
</PropertyGroup>
</Project>