0% found this document useful (0 votes)
4 views1 page

.NET Core Web API Setup Guide

The document outlines a series of command-line instructions for setting up a .NET project, including creating a solution and web API, managing HTTPS certificates, and adding class libraries. It also includes commands for managing migrations with Entity Framework and restoring dependencies. Overall, it serves as a guide for initializing and configuring a .NET development environment.

Uploaded by

islamgpt520
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

.NET Core Web API Setup Guide

The document outlines a series of command-line instructions for setting up a .NET project, including creating a solution and web API, managing HTTPS certificates, and adding class libraries. It also includes commands for managing migrations with Entity Framework and restoring dependencies. Overall, it serves as a guide for initializing and configuring a .NET development environment.

Uploaded by

islamgpt520
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

01) ls

02) dotnet --info


03) cls
04) mkdir skinet
05) cd skinet
06) dotnet -h
07) dotnet new list
08) dotnet new sln
09) dotnet new webapi -n API -f net6.0 --no-https
10) dotnet sln add API
10) dotnet dev-certs https
11) dotnet dev-certs https --clean
12) dotnet dev-certs https --trust
13) dotnet run
14) dotnet watch
15) dotnet watch --no-hot-reload
16) dotnet restore
17) dotnet tool install --global dotnet-ef --version 7.0.5
dotnet-ef -v
18) dotnet ef migrations
19) dotnet ef migrations add InitalCreate -o Data/Migrations
20) dotnet new classlib -n Core
21) dotnet new classlib -n Infrastructure
22) dotnet sln add Core
23) dotnet sln add Infrastructure
24) dotnet add reference ../Infrastructure
25) cd ..
26) cd Infrastructure
27) dotnet add reference ../Core
28) dotnet restore
29)
30)

You might also like