Create a new project in Visual Studio 2022, choose type ASP.NET Core Web API, set name as AddressBook, choose .NET 8 in framework. leave other options unchanged and create the project.

Add the following NuGet packages in the project.

  • AutoMapper.Extensions.Microsoft.DependencyInjection
  • DotNetEnv
  • Microsoft.EntityFrameworkCore.Design
  • Microsoft.EntityFrameworkCore.SqlServer
  • Microsoft.EntityFrameworkCore.Tools
  • System.Linq.Dynamic.Core

Check the packages from the below screenshot and verify that you have installed the correct packages.

nuget packages addressbook