This is a quick guide for getting started with Visual Studio Code and C# development.
Install the following:
- Visual Studio Code
- C# extension for VSCode
- .Net Core SDK - (Choose "Download .NET Core SDK")
Open a shell (CMD, PowerShell, &c) and execute the following:
> dotnet new console -o TestApp
> code TestApp
This should create a new ConsoleApp and open it in VSCode.
In Visual Studio Code, open a new Terminal (View => Terminal
in the menu). Execute the following command:
> dotnet run
This should run the project, outputing Hello World!
.
Open the command palette in VS Code (Ctrl+Shift+P
) and search for OmniSharp: Restart OmniSharp
.