Build fails with error NU1510: Warning As Error: PackageReference System.Text.Json will not be pruned
#3522
-
Following (I think) the guidelines for building Microsoft.Data.SqlClient, when I execute
Have I missed something? |
Beta Was this translation helpful? Give feedback.
Answered by
edwardneal
Aug 15, 2025
Replies: 2 comments 3 replies
-
Hi @frankbuckley - I'm not seeing this error when I build: PS C:\Users\paulmedynski\dev\SqlClient\main> msbuild
...
Done Building Project "C:\Users\paulmedynski\dev\SqlClient\main\build.proj" (default targets).
Build succeeded.
"C:\Users\paulmedynski\dev\SqlClient\main\build.proj" (default target) (1) ->
"C:\Users\paulmedynski\dev\SqlClient\main\src\Microsoft.Data.SqlClient\netfx\src\Microsoft.Data.SqlClient.cspro
j" (default target) (7:7) ->
(ResolveCodeAnalysisRuleSet target) ->
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\amd64\Microsoft.CSharp.Cur
rentVersion.targets(130,9): warning MSB3884: Could not find rule set file "MinimumRecommendedRules.ruleset". [C
:\Users\paulmedynski\dev\SqlClient\main\src\Microsoft.Data.SqlClient\netfx\src\Microsoft.Data.SqlClient.csproj]
1 Warning(s)
0 Error(s)
Time Elapsed 00:02:17.00 (Ignore the warning) Are you still seeing it with the latest repo pulled? If so, can you indicate what command you're running to initiate the build? |
Beta Was this translation helpful? Give feedback.
3 replies
-
I've opened #3576 to handle any issues with the .NET 10 SDK. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a breaking change when building with the .NET 10 SDK, documented here. It's probably showing up when the .NET 10 previews are installed.
Fixing this might have implications when people create issues for vulnerable dependencies (if that dependency is part of .NET.)