Required references did not load
See original GitHub issueI get a lot of errors like these:
Required references did not load for [project name] or referenced project. Run `dotnet restore` prior to formatting.
Running dotnet restore
doesn’t help, though. This happens for a lot of the projects in my solution, not all of them, though.
I’m running v5.0.152601 on Linux (NixOS).
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Visual Studio doesn't load project references
When I open the properties tab for a system reference, the Path field is empty, and so the Resolved field is False ......
Read more >What To Do if You Have No References for a Job Application
You may find yourself in a situation where you need to provide references but don't have any professional experience or work contacts.
Read more >Troubleshoot broken references - Visual Studio
If projects are shared on different computers, some references might not be found when a component is located in a different directory.
Read more >External reference (xref) file is missing or unresolved in ...
When opening a drawing in AutoCAD products, the following message appears and some or all the referenced files are not loaded, or show...
Read more >When and how to include references on a resume
This in-depth guide teaches you when to include references on a resume, and when NOT to use them.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Unfortunately none of the projects are open source. I’m gonna investigate a little further tomorrow and maybe I can create a sample project to reproduce the issue.
I am facing this issue after upgrading from .netcoreapp3.1 to net6.0 TFM (SDK 6.0.401)
(dotnet format also changed its API… so the previous CLI command does not work so one has to adapt to the breaking change)
I ran dotnet restore multiple times even with -f flag.
Any ideas anyone… I get the same issue when I target my referenced libraries to TFM net6.0
My repo root global.json targets 3.1.416, but the one on the project targets 6.0.401, I run dotnet format from repo root. I am trying to gradually upgrade projects but this is hard to pass…
In the target csproj I added the nugets the internet advises… but no help: