Every C# developer should know how to build C# applications using VSCode. This repo will help you do just that.
- Get VSCode: code.visualstudio.com
- Get the .NET SDK: .NET SDK Downloads
- Install the C# extension: C# Extension for VSCode
dotnet --info
- Gets you all of the information about the installed SDKsdotnet new --list
- Gives you the list of installed templatesdotnet new <template> --name <name>
- Creates a new template item with the name you specifydotnet sln <SolutionName> add <ProjectName>
- Adds a project to a solutiondotnet add <ProjectName> reference <LibraryName>
- Adds a reference to a library in a projectdotnet add package <PackageName>
- Adds a package to a project
- If the
lauch.json
andtasks.json
files do not get created, in the VSCode Command Pallette, run.NET: Generate Assets for Build and Debug
to generate the files. - To run a Console application that utilizes the
ReadLine
method, change theconsole
entry tointegratedTerminal
fromintegratedConsole
. - To specify which web profile to use, add
"launchSettingsProfile": "<profileName>"
to thelaunch.json
file. - To allow for Hot Reload, change the
preLaunchTask
value frombuild
towatch
in thelaunch.json
file.
- YouTube Video: Intro to VSCode for C# Developers
- YouTube Video: Intro To The .NET CLI
- Other Free Resources: Resource at IAmTimCorey