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

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.

GrĂ¼sse aus Berlin!
Loek