INTRODUCTION
C# is a language oriented to objects inside Visual Studio (IDE), with C# you can develop software of desktop, web(with .NET) and smartphone(Android and iOS)
Mainly Visual Studio is only for windows but also you can use Visual Studio with Linux or Mac but in the light version called "Visual Studio Code". Here we are going to use for Windows and the example will be only to an interfaz in desktop, Later in other topic We'll write the same C# but for web and smartphones.
REQUIREMENTS TO RUN
Visual Studio is private and We need to pay for a license, but Visual Studio has a free license called "Visual Studio Community":
https://www.visualstudio.com/downloads/download-visual-studio-vs
Download and install.
HELLO WORLD
1) Open your Visual Studio
2) File --> New --> Project
3) Select Templates/VisualC#
4) In the right panel we can choose different projects, in this case we are going to use console project, then choose "Console Application".
5) On the bottom, write the project's name: test and click on the button "OK".
6) In the Program.cs and inside of Main method write:
System.Console.WriteLine("Hello World");
While(true);
7) To Run: Debug --> Start Debugging
8) To stop the project: Ctrl + C or Debug --> Stop Debugging
Thanks!!!

No hay comentarios:
Publicar un comentario