Start new API
dotnet new webapi -n WhateverAPI --auth Individual
These steps need to happen for both the API and the Web Application projects.
Install the global Code Generation Tool for ASP.NET by visiting the NuGet package page and running the command shown there.
dotnet add package Microsoft.EntityFrameworkCore.Sqlite
dotnet add package Microsoft.EntityFrameworkCore.Tools.DotNet
dotnet add package Microsoft.VisualStudio.Web.CodeGeneration.Tools
Then you need to modify your .csproj
file to include the command line tooling for ASP.NET scaffolding. Add the following section.
<ItemGroup>
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="2.0.4" />
</ItemGroup>