Sunday, March 6, 2022

Dot nets commands for VS Code

 dotnet version 

dotnet --info  

dotnet -h         

dotnet new  

mkdir Reactivities

dotnet new sln   

dotnet new webapi -n API

dotnet new classlib -n Application

dotnet new classlib -n Domain

dotnet new classlib -n Persistence

dotnet sln

dotnet sln add API/API.csproj

dotnet sln add Application

dotnet sln add Persistence

dotnet sln add Domain

dotnet sln list

dotnet add reference ../Application

cd Application

dotnet add reference ../Persistence

cd Persistence

dotnet add reference ../Domain

dotnet run

dotnet tool install --global dotnet-ef --version 6.0.1

dotnet tool list --global

dotnet ef -h

dotnet ef migrations add InitialCreate -p Persistence -s API/

dotnet ef migrations add InitialCreate -p Persistence -s API

dotnet ef database -h

dotnet new gitignore

dotnet build

dotnet run watch

dotnet ef migrations add IdentityAdded -p Persistence -s API

dotnet ef migrations add ActivityAttendee -p Persistence -s API

dotnet ef migrations remove -p Persistence -s API

dotnet new classlib -n Infrastructure

dotnet sln add Infrastructure

cd Infrastructure

dotnet add reference ../Application

cd..

cd API

dotnet add reference ../Infrastructure

cd..

dotnet restore


No comments:

Post a Comment