79343946

Date: 2025-01-09 20:26:59
Score: 0.5
Natty:
Report link

I had this problem for a long time. The root cause ended up being that the file C:\Program Files\dotnet\sdk\6.0.136\DotnetTools\dotnet-format\dotnet-format.deps.json had a reference to an older version of System.Text.Json. This was the file that was deciding which version would be used by the GenerateDeps task regardless of what version was referenced in the projects.

The solution was to uninstall the 6.0.136 SDK, install a newer one, and then do a Repair of Visual Studio using the Visual Studio Installer to fix the PATH variable.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Smurph269