Solution to error – Package ‘Microsoft.VisualStudio.Web.CodeGeneration.Tools’ has a package type ‘DotnetCliTool’ that is not supported by project

To restore the package successfully you must open up Terminal/Command Prompt/Bash and cd into your Project directory (not the Solution directory). Here you can run the command "dotnet restore". Once this command completes running, you can now execute the following command to verify that the Entity Framework CLI tool has been installed. "dotnet ef -h" Now you can go ahead and run your scaffold command!