In this video, I'm going to show you how you can start a Visual Studio project with C Sharp in Visual
Studio on a mac, and therefore you simply need to open up Visual Studio Community on your Mac and then
open a new solution, go to File New Solution, and then under other dot net you can find the console
project.
And here you can simply select C sharp and then press next.
Then you give it a project name for example hello underscore world and then press create.
Once that is done, you will find your project here with the program.cs file in your Hello World folder.
There it is.
And then you simply press the run button here at the top and the console runs.
So you can see our little program starts and it writes Hello World onto our console as well as press
any key to continue.
So on windows you have to type that out manually.
So you have to add a console read in order to keep the console open.
And you also need to have a console write line in order to have this, press any key to continue print
it onto your console.
But in Mac, that's happening automatically, so your console will stay open anyways.
But I'm going to use the approach as on windows where I need to add the following line.
So I would need to add console dot read key for example.
And that would leave the console open.
So let me run that again.
And as you can see now it expects a key.
So that's why it doesn't show do whatever next.
So if I press that then press any key to continue comes up.
But on a windows that wouldn't come up and the program would simply shut down.
Other than that, everything should be the same, except for, of course, the user interface as well.
So see you in the next video.