Setup dotnet development in Visual Studio, dotnet CLI and VS code
dotnet_setup Install dotnet Download and install dotnet sdk from https://dotnet.microsoft.com/en-us/download Verify dotnet version with the command dotnet --version Solution and Projects in dotnet Project is a C# application. It is defined by a .csproj file Solution is a collection of multiple projects. It is defined using a .sln file A simple C# solution folder structure can be as follows ConsoleAppSolution │ ConsoleAppSolution.sln │ ├───ConsoleApp1 │ ConsoleApp1.csproj │ Program.cs │ └───ConsoleApp2 ConsoleApp2.csproj Program.cs Development with Visual studio Download and install visual studio from https://visualstudio.microsoft.com/downloads/ Open Visual studio and select “Create New Project” Select project type as “Console Application” Enter the solution name and project name Select the dotnet version Now a solution is created in visual studio as shown below Development with dotnet CLI dotnet C