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.
More Related Contents:
- How to install JSON.NET using NuGet?
- How do I get .NET Core projects to copy NuGet references to the build output?
- How can I clear the NuGet package cache using the command line?
- Equivalent to AssemblyInfo in dotnet core/csproj
- How do I get NuGet to install/update all the packages in the packages.config?
- Add native files from NuGet package to project output directory
- How do I enable NuGet Package Restore in Visual Studio?
- Setting up a common nuget packages folder for all solutions when some projects are included in multiple solutions
- How do you multi-target a .NET Core class library with csproj?
- Download old version of package with NuGet
- How can I install an older version of a package via NuGet?
- Automatic native and managed DLLs extracting from Nuget Package
- Auto Versioning in Visual Studio 2017 (.NET Core)
- Compile a .NET Core application as an EXE file using Visual Studio 2017
- Add a package with a local package file in ‘dotnet’
- Unable to load the service index for source https://api.nuget.org/v3/index.json in VS2017?
- Visual Studio/C#: Nuget Unable to connect to remote server
- Include ONLY .xml file of SPECIFIC nuget package in a different folder
- What do Yellow Warning Triangles mean on Dependencies in Visual Studio 2017?
- Include all dependencies using dotnet pack
- How to package a portable .NET library targeting .NET Core?
- How to resolve Nuget Package Version and Path in Pre-Build Event of a Project?
- ef core doesn’t use ASPNETCORE_ENVIRONMENT during update-database
- How to get “Manage User Secrets” in a .NET Core console-application?
- .NET Core app unable to start in IIS due to ErrorCode = ‘0x80004005 : 80008083
- Visual studio 2017 Update 3 – The SDK ‘Microsoft.NET.Sdk.Web’ specified could not be found
- nuget spec dependencies, get latest version?
- NuGet Package Restore Not Working
- Killing gracefully a .NET Core daemon running on Linux
- .Net Core on Raspberry Pi 4 with Raspbian?