Welcome to C#
In this article you will be able to-- Download and Install Visual Studio 2019
- Use the Microsoft Visual Studio 2019 programming environment
- Create a C# console application
- Explain the purpose of namespaces
You can download Visual Studio 2019 from the below link-
So, Let's download and install it
Step-1:
Beginning programming with the Visual Studio 2019 environment
Visual Studio 2019 is a tool-rich programming environment containing the functionality that you need to create large or small C# projects. We can can construct projects that seamlessly combine modules written in different programming languages such as C++, Visual Basic, and F#.
First of all you need to create a Console Application for learning purpose.
A console application is an application that runs a command prompt window rather than providing a graphical user interface (GUI)
Perform the following step to create a new console application:
Step-2:
- Open Visual Studio
- Click on Create a new project
- Search console in the search box
- Select Console App (.NET Framework) | Note: ensure the language C#
- Click on Next
Step-4:
- Type the project name
- Chose the project location, where you want to save the project it's up to you.
- Then click on Create button
- Finally Console application project successfully created.
- Solution 'FirstConsoleApp' - This is the top level solution file. Each application contains a single solution file. A solution can contains one or more projects, and Visual Studio crates the solution file to help organize these projects.
- FirstConsoleApp - This is the C# project file. Each project file references one or more files containing the source code.
- Properties- This is the folder in the FirstConsoleApp project. If you expand the properties option, you will see that it contains a file called AssemblyInfo.cs. AssemblyInfo.cs is a special file that you can use to add attributes to a program, such as the name of the author, the date the program was written, and so on.
- References - This folder contains references to libraries of compiled code that your application can use. C# code is compiled, it is converted into a library and given a unique name. In the Microsoft .NET Framework, these libraries are called assemblies.
- App.config - This is the application configuration file. It is optional, and it might not always be present.
- Program.cs - This is a C# source file, and it is displayed in the Code and Text Editor window when the project is first created.
Note: Remember that, C# is a case-sensitive language. You must spell Main with an uppercase M.
Step-6:
Let's get started the coding... by using Microsoft IntelliSense
Step-7: Run the project by click on Start or press F5
Step-7: Run the project by click on Start or press F5
post will continue...

Comments
Post a Comment