C# Beginners – Visual Studio

Visual Studio Logo
Visual Studio

C# Beginners – Visual Studio; is the gold standard in IDEs for C# development under Microsoft Windows. It comes with a community licence for people not using it commercially. Visual Studio has graphical designers for both WPF and Winforms. That sets it aside from all other IDEs when coding in C#.

Install and Setup Visual Studio For C#

Download and Run Setup

Visit the Visual Studio Downloads page.

Visual Studio Download - C# Beginners - Visual Studio
Visual Studio Download

Run Setup

Run the setup file; this will install the Visual Studio installer rather than Visual Studio itself.

Visual Studio Installing - C# Beginners - Visual Studio
Visual Studio Installing

Once that has been installed, it will offer Visual Studio Components.

Component Selection

The only component needed for C# is the Dot Net Desktop Development. Of course, if you want others, then feel free to install them. However, for this guide’s tutorials, you only need Dot Net Desktop Development.

Visual Studio Component Selection
Visual Studio Component Selection

Starting Visual Studio

After the installer finishes, run visual studio and click the create new project button.

Visual Studio Create New Project
Visual Studio Create New Project

Next, make sure that the console app is selected and that it is the .Net on Windows Linux and macOS

Visual Studio Create New ConsoleApp
Visual Studio Create New ConsoleApp

Click the next button and set the name and location for your new C# Solution.

Save Location
Visual Studio Create Save Location

Click the next button and choose the .Net SDK; I suggest version 6 since that is the latest long-term support version at the time of writing.

DotNet6 LTS
Visual Studio Create DotNet6 LTS

Note the check box for “Do not use top-level statements”. If you check that, it will give you the old-style C# program.cs file. Leaving it unchecked will start the new way since Dot Net 6.

Top Level Statements – Ready To Code (New Way)

DotNet6 ReadyToCode - New Way
Visual Studio Create DotNet6 ReadyToCode – New Way

No Top Level Statements – Ready To Code (Old Way)

Create DotNet6 ReadyToCode - Old Way
Visual Studio Create DotNet6 ReadyToCode – Old Way

Video Version – C# Beginners – Visual Studio

Related Articles – C# Beginners – Visual Studio

Related Post

11 thoughts on “C# Beginners – Visual Studio

Leave a Reply

Your email address will not be published. Required fields are marked *