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.
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.
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.
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.
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.
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.
Once we click on OK button, a new console application will be created like as shown below.
This is how we can create a console application in c# programming language using visual studio based on our requirements.