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


I was getting this exception while building my blazor application.

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

I fixed this issue by clearing NuGet Caches. I hope this will help to other developer.