C# Setup Development Environment

  Keywords : Installing and setting up a c# development environment on windows with examples, Download and install visual studio ide on windows to create a c# applications with examples

Here we will learn how to setup c# development environment by installing visual studio 2015 / 2017 IDE with examples and how to use Microsoft visual studio IDE (integrated development environment) to setup c# development environment with examples.

C# Setup Development Environment

As discussed in C# Introduction, C# programming language has built on .NET Framework to build a variety of secure and robust applications such as windows, web or database applications based on our requirements.

 

To run C# applications, we require to install a .NET Framework component on our machines. In case, if you are using a windows operating system, then by default .NET Framework installed on your machine. To know more about .NET Framework versions installed on your machine, check this .NET Framework Versions.

Visual Studio IDE

Microsoft has provided an IDE (Integrated Development Environment) tool called Visual Studio to build an applications using programming languages such as C#, F#, Visual Basic, etc. based on our requirements.

 

The Visual Studio IDE will provide a common user interface with a collection of different development tools to build an applications with different programming languages such as C#, F#, Visual Basic, etc.

 

To install and use Visual Studio for commercial purpose we need to buy a license from the Microsoft. In case if you want to use Visual Studio for learning (non-commercial) purpose, Microsoft provided a free Visual Studio Community version.

 

You can download and install a Visual Studio Community version from visualstudio.com. In our C# tutorial we will use Visual Studio 2017 community version.

Now we will see how to create a console application in c# programming language using visual studio.

Create a Project in Visual Studio

Once you are done with visual studio installation, open visual studio and it will be prompted to sign in for the first time. The sign-in step is an optional so you can skip it and in next step the dialog box will appear and ask you to choose your Development Settings and color theme. Once you select required options, click on Start Visual Studio option like as shown below.

 

Start Visual Studio with Default options to Create C# Programs

 

After visual studio launch, create a new console application using c# programming language for that, Go to File à New à select a Project like as shown below.

 

Create a New C# Project using Visual Studio

 

Once you click on Project, a new popup will open in that select Visual C# from the left pane and choose Console App. In the Name section give any name for your project and select appropriate Location path to save your project files and click OK like as shown below.

 

Select Visual C# and Console App to Create a C# Project using Visual Studio

 

Once we click on OK button, a new console application will be created like as shown below.

 

After Creating a C# Console Application using Visual Studio

 

This is how we can create a console application in c# programming language using visual studio based on our requirements.