Pages

Thursday, March 6, 2014

Creating Your First C# Program

Hi, this is my first blog post regarding my experiences as a web developer. I decided to start this blog in order for me to be reminded what are the skills that I know and what are the skills that I am bound to learn. I also started this blog for people out there who want to learn about programming (using C# because this is my native language :D, may be will go with Java & PHP too, who knows?). For my first blog post, please allow me to create a "Hello, World!" console application using Visual Studio 2013.

Objective/s

  • To be able to create your first program in C#
  • To be able to convert a Class Library into a Console App

Requirement/s:


  • IDE - Visual Studio - (mine is VS 2013)
Steps
1. Open your VS2013 (or whatever Visual Studio version you have)


2. Press Ctrl+Shift+N or Go To File > New Project


 3. Select Visual C# then select Class Library and click OK. 
(Optional: Change the Project Name to whatever you prefer)



4. Select Project from the Solution Explorer and Click "Alt + Enter" or Right Click on the Project then click on Properties.



5. In the Application tab, select Output Type as Console Application
*by doing these you are telling to run this project as a Console Application



6. Select the class Class1.cs from the Solution Explorer and type these:



7. Run the program by either pressing F5 or by going to Debug > Start Debugging. A Console window will then appear with the message "Hello, World"




No comments:

Post a Comment