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.jsonandtasks.jsonfiles do not get created, in the VSCode Command Pallette, run.NET: Generate Assets for Build and Debugto generate the files. - To run a Console application that utilizes the
ReadLinemethod, change theconsoleentry tointegratedTerminalfromintegratedConsole. - To specify which web profile to use, add
"launchSettingsProfile": "<profileName>"to thelaunch.jsonfile. - To allow for Hot Reload, change the
preLaunchTaskvalue frombuildtowatchin thelaunch.jsonfile.
- YouTube Video: Intro to VSCode for C# Developers
- YouTube Video: Intro To The .NET CLI
- Other Free Resources: Resource at IAmTimCorey