Hello and welcome.
In this lecture we are going to create a version of your first C SHARP program using Visual Studio I.D.
e the idea stands for integrated development environment.
So we're going to create exactly the same application we created using the text editor from The Visual
Studio idea.
So let's get going.
So let's launch features to do so I'll go to my start menu and look for visual studio and go Visual
Studio 2015.
So I just double click with my visual studio I can't find it.
Oh there is right here.
OK.
Is our click feature studio 2015 to launch the Visual Studio.
So this is what features to your looks like when it is launched.
So a need to create a console app.
So I go to file I'm going you go project
and I should get a list of templates which will give me a guide as to the type of project I want to
create.
So it's initializing the template.
So these are the various visual studio template so why need to do here which is called visual see sharp.
I need to have that highlighted and here I need to click console Happ that means e to display the application
in a console.
So Uncle console out there and then here is given it a default name.
I'm just going to change that and typing Hey
world and notice is put the solution name there as well as same as the name I just click Okay.
And it should generate some basic code for me.
Excellent.
So this all I've done is just name the file and Visual Studio has automatically created some basic code
for me.
These here they are classes Westcott using that means is using these classes.
Notice when we created using the text editor we had to use system dot by here.
You don't we.
We're not going to use that because it's already defined here with this using them as you using the
system class.
It's all various classes.
All right.
So we are going to write our code in between this curly braces here.
So I just type down and in between there is where we're going to write our code notice this yellow strip
here.
That means you have code that you have not saved.
That's what I'm trying to tell you.
All right.
So we've got the basic.
This is a namespace what we call the application.
So I'm going to write just basically two line of code.
It's going to be console which means it's a console.
Notice this menu here.
This is called intelligence.
It's built into a feature studio a kind of like gives you a guide as to what you're trying to type.
So it tries to detect or guess what you're trying to type and gives you suggestions.
So the typing console notice has got console there.
So I just click on the console.
Dot writes line
notice already got the right line there in the library.
OK.
So console the right line.
And then I put parentheses open and close in between the parentheses I type in the word hello.
Well put exclamation there.
All right.
And then put a semicolon there and then a tab down next line.
I will do console again So intelligence is helping me there.
Console makes me write the code faster great like.
Notice here
and then I put only in parentheses and then a semicolon.
So my code is basically done.
So I need to save my code.
So I need to see the point of folders here at click save and is turn green which means it has been saved
on the left here is what will you call a solution explorer.
So when you create a project in Visual Studio it creates a complex solution for the project.
That's the name of the project.
The solution is called Hello World which is the name of the project.
The actual project name the siege up folder is called or the application.
Notice got C SHARP It's called Hello World and these are the various properties linked but won't go
into details of that at the moment the focus of this is just to create a very basic console app.
So all we've done have created two lines of code.
This is the only thing we've done here.
Now we don't have to manually compile like we did when we using the text editor.
That's the difference here.
The Visual Studio idea mixing so simple.
So what we do to compile it we just hit this button here.
This is a start and it will compile the code to say it so is built into code tells you here build started
building it and once it does that it will display the result in the console bam.
That's it.
See the difference between doing it this way and doing it via the text editor.
The Turks had it always manual process and it's painful and it's all so prone to errors by using your
fingers to do this the less hassle and you're less prone to errors.
Okay so that's our application.
This is just some diagnostic monitoring the application and stop seeing what the what we're using within
the application.
Money is looking is basically monitoring the memory.
All right.
So to ask you can click X to ask about application so the application has stopped running.
So in this lecture we have successfully created a very simple console app using Visual Studio i d e
thank you so much for watching.
Bye for now.