Assets file project.assets.json not found. Run a NuGet package restore to generate this file.

Restoring NuGet packages from Visual Studio did not solve the problem and the error remained...

After adding a .NET Standard project to my solution, Visual Studio was not able to add a proper dependency from the project:

references

Which results in these errors:

references

Restoring NuGet packages from Visual Studio did not solve the problem and the error remained:

Error		Assets file '...\obj\project.assets.json' not found. Run a NuGet package restore to generate this file.

Solution that solved my issue

dotnet restore

This triggered NuGet to actually update the packages:

references

I hope this helps you too.

Written by Loek van den Ouweland on May 17, 2018. Questions regarding this artice? You can send them to the address below.
By using this site, you acknowledge that you have read and understand our Cookie and Privacy Policy.