Skip to content

Can't update packages NU1007 : runtime.json could not be foundΒ #26551

@Gavin-Williams

Description

@Gavin-Williams

Describe the bug

I can't update the package Microsoft.Windows.SDK.BuildTools from 10.0.22000.197 to 10.0.22621.1.

I get the following output:

NU1007: The runtime.json specified in the project 'C:\Program Files\dotnet\sdk\6.0.301\RuntimeIdentifierGraph.json' could not be found.
Package restore failed. Rolling back package changes..

This is probably not reproducible from my end. This is a random issue that I see every now and again from Visual Studio. And I've seen it across many installs. My projects were working. I updated VS. The most recent project in the solution is working, and I can update it's packages. But other projects are broken with many errors and I can't update their packages.

The kinds of errors I see are..

Linq does not exist in the namespace system
Text does not exist in the namespace system
Predefined System.Object is not defined or imported

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions