Posts

Showing posts with the label Nuget Package Restore

Assets File Project.assets.json Not Found. Run A NuGet Package Restore

Answer : To fix this error from Tools > NuGet Package Manager > Package Manager Console simply run: dotnet restore The error occurs because the dotnet cli does not create the all of the required files initially. Doing dotnet restore adds the required files. In my case the error was the GIT repository. It had spaces in the name, making my project unable to restore If this is your issue, just rename the GIT repository when you clone git clone http://Your%20Project%20With%20Spaces newprojectname In case when 'dotnet restore' not works, following steps may help: Visual Studio >> Tools >> Options >> Nuget Manager >> Package Sources Unchecked any third party package sources. Rebuild solution.