Week1a VisualStudioSetUp
Week1a VisualStudioSetUp
Visual Studio is a powerful integrated environment (IDE) for developing software applications for
Windows and the .NET Framework platform. Visual Studio (VS) supports different programming
languages (for example C#, VB.NET and C++) and different software development technologies (Win32,
COM, ASP.NET, ADO.NET Entity Framework, Windows Forms, WPF, Silverlight, Windows Store apps and
many more Windows and .NET technologies).
It offers a powerful integrated environment for writing code, compiling, executing, debugging and
testing applications, designing user interface (forms, dialogs, web pages, visual controls and others),
data and class modeling, running tests and hundreds of other functions.
IDE means “integrated development environment” – a tool where you write code, compile it, run it, test
it, debug it, etc. and everything is integrated into a single place. Visual Studio is typical example of
development IDE.
1. Download installer for Visual Studio (Select visual studio professional free trial).
https://visualstudio.microsoft.com/downloads/
2. Install the file and open the Visual Studio.
*select C# language when you open the Visual Studio
- Start Page – from the start page we can easily open any of our latest projects or start a new one, to
create our first C# program or to get help how to use C#.
- Code Editor – keeps the program’s source code and allows opening and editing multiple files. - Error
List – it shows the errors in the program we develop (if any). We learn how to use this window later
when we compile C# programs in Visual Studio.
- Solution Explorer – when no project is loaded, this window is empty, but it will become a part of our
lives as C# programmers. It will show the structure of our project – all the files it contains, regardless if
they are C# code, images or some other type of code or resources.
- Properties – holds a list of the current object’s properties. Properties are used mainly in the
component-based programming, e.g. when we develop WPF, Windows Store or ASP.NET Web Forms
application.
Creating a New C# Project
Before doing anything else in Visual Studio, we must create a new project or load an existing one. The
project groups many files, designed to implement a software application or system, in a logical manner.
It is recommended that we create a separate project for each new program.
- File -> New Project … - The “New Project” dialog appears and lists all the different types of projects we
can create. We can choose a project type (e.g. Console Application or WPF Application), programming
language (e.g. C# or VB.NET) and .NET Framework version (e.g. .NET Framework 4.5) and give a name to
our project (in our case “HelloWorld”):
-Click OK (IDE will display the figure below)