Second Person Shooter's user avatar
Second Person Shooter's user avatar
Second Person Shooter's user avatar
Second Person Shooter
  • Member for 12 years, 10 months
  • Last seen this week
Stats
46,511
reputation
7.6m
reached
419
answers
364
questions
Loading…
About

Disclaimer: Trusting VP does not necessarily imply supporting his wars. There are many other good things to be considered. Period.

I consider myself as the next Rowan Parkinson™.

“If an injury has to be done to a man it should be so severe that his vengeance need not be feared.”

enter image description here

enter image description here

enter image description here enter image description here

Donald Duck merged my accounts.

My Cheatshits

NET:

  • dotnet --version or dotnet --info
  • dotnet tool list -g
  • dotnet tool install dotnet-ef -g
  • dotnet tool update dotnet-ef -g
  • dotnet tool uninstall dotnet-ef -g

EFCore:

  • dotnet ef migrations add <label> -p <projname>
  • dotnet ef database update -p <projname>
  • dotnet ef database drop -p <projname>

Solution and Projects:

  • mkdir <dirname>
    cd <dirname>
    dotnet new sln
    
  • dotnet new webapi -o <projname>
    dotnet sln add <projname>
    
  • cd <projname>
    dotnet run
    dotnet watch run
    
  • dotnet add <projname> package <Nugetpkg>
  • dotnet add <projname> reference <otherprojname>

Certificate:

  • dotnet dev-certs https --trust
  • dotnet dev-certs https --clean

Node, Npm, Angular:

  • node -v
  • npm -v
  • npm list -g --depth 0
  • npm update -g
  • npm install @angular/cli -g
  • npm update @angular/cli -g
  • npm uninstall @angular/cli -g
  • ng version instead of ng --version
  • ng new <projname> --routing true --style css --skip-git --skip-tests
  • ng g c <compname>
  • ng g class subdir/<classname> --type=model --skip-tests
  • ng serve --open
    ng serve --port <number> --open
    
  • ng add @angular/material
  • ng build --prod
  • npm install now -g
    cd dist/<projname>
    now
    
46
gold badges
185
silver badges
335
bronze badges
717
Score
180
Posts
23
Posts %
310
Score
192
Posts
25
Posts %
242
Score
35
Posts
4
Posts %
161
Score
27
Posts
3
Posts %
126
Score
34
Posts
4
Posts %
51
Score
19
Posts
2
Posts %
Top posts
View all questions and answers