.net core 2.0 MVC reference

Personal reference post https://github.com/davehax/NetCore2_MultiStageForm All "dotnet xxx" commands need to be run from the command line in the Project Directory Database-First approach - packages required to scaffold the database into Model classes and then generate Controllers & Views. <ItemGroup> <PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.0" /> <PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.0.3" /> <PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Utils" Version="2.0.3" /> </ItemGroup> <ItemGroup> <DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="2.0.3" … Continue reading .net core 2.0 MVC reference


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!