Fix all NU1605 errors: suppress via Directory.Build.props instead of per-package pins
NCalc2 -> Antlr4 -> Antlr4.Runtime -> NETStandard.Library 1.6.0 triggers 6+ NU1605 downgrade warnings on linux-x64 publish (System.IO.FileSystem.Primitives, System.Text.Encoding.Extensions, System.Diagnostics.Tracing, Microsoft.Win32.Primitives, System.IO.FileSystem, System.Net.Primitives). All are harmless — .NET 8 supplies these natively. Directory.Build.props suppresses NU1605 solution-wide cleanly. Removes the individual System.Runtime.InteropServices pin added in previous commit. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<Project>
|
||||
<PropertyGroup>
|
||||
<!--
|
||||
NCalc2 2.1.0 -> Antlr4 4.6.4 -> Antlr4.Runtime -> NETStandard.Library 1.6.0 pulls in
|
||||
old package versions that trigger NU1605 downgrade warnings when publishing for linux-x64.
|
||||
These are harmless false positives — .NET 8 supplies all of these natively at runtime.
|
||||
Suppressing NU1605 here is cleaner than pinning every affected transitive package individually.
|
||||
-->
|
||||
<NoWarn>$(NoWarn);NU1605</NoWarn>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -24,8 +24,6 @@
|
||||
<!-- Force newer versions of transitive packages with known CVEs -->
|
||||
<PackageReference Include="System.Formats.Asn1" Version="8.0.1" />
|
||||
<PackageReference Include="System.Text.Json" Version="8.0.5" />
|
||||
<!-- Pin to resolve NCalc2 -> Antlr4 -> NETStandard.Library transitive downgrade -->
|
||||
<PackageReference Include="System.Runtime.InteropServices" Version="4.3.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user