Skip to content

Instantly share code, notes, and snippets.

@dipaktelangre
Last active July 10, 2020 13:29
Show Gist options
  • Select an option

  • Save dipaktelangre/50ca02094a1da38a050bab3f58b14a82 to your computer and use it in GitHub Desktop.

Select an option

Save dipaktelangre/50ca02094a1da38a050bab3f58b14a82 to your computer and use it in GitHub Desktop.

Create dotnet project

dotnet new -l List all the avaialble template
dotnet new angular -n MyAppName Create porject from angualr template with name MyAppName
dotnet build build dotnet application dotnet run Run dotnet application

Launch VSCode from commandline

code command will open the VSCode editor
code . open current directory in VSCode
code filename open file in VSCode

Make sure VSCode is added to PATH

Install C# Extension

CTRL + SHIFT + X Open extension tab
Search below extensions and Install Them.

  • C# By Microsoft
  • C# Extension (Good to have )
  • C# Snippets (Good to have)

Create launch configuration

Required assets to build and debug are missing from 'MyAppName'. Add them? , Press 'Yes'
This will create .vscode folder with two files launch.json & task.json files.

CTRL + SHIFT + D Open run window

F5 Debug F10 Step Over F11 Step In SHIFT + F5 Stop debugger

  • Open controller and add breakpoint. Run applciation, browser to the app so that breakpoint can hit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment