Compiling simple C# program in Visual studio .NET editor

Sir,
i am beginner in c# language.   How can i run a simple C# program in Visual studio .NET editor ?. I know how to run c# program in Command mode.
amrutha_vkAsked:
Who is Participating?
 
AdrianJMartinConnect With a Mentor Commented:
File menu -> New Project

select Visual C# Projects, windows appliaction

wait for the wizard to finish

presws f5 to build
0
 
JavaInTheMorningCommented:
Open a new project (Console application) and then add your source file to this project and build it.
0
 
amrutha_vkAuthor Commented:
sir,
Will u please explain it in detail
0
 
dotnet_programmerCommented:
You are wanting to create a console application. Follow these directions:

Click on "File"
Click on "New"
Click on "Projects"

In the left window panel click on Visual C# Projects and in the right panel scroll down to "Console Application".
In the "Name" below that rename your application to whatever you want and you can choose the location where you want to create the project.

Next, when the wizard finishes creating the project. In the "Solutions Explorer" on the right hand side of the coding area. If you don't see it at first look on the right hand side, it may be minimized and you will need to put your mouse over the button and it will slide out from the right.

Double click on the .cs file that will be there and copy and paste your code into the coding area. Make sure the .cs file is the same name as your class.

To debug the application click on "Debug" and then "Start" or press F5. To run the application without debugging click on "Debug" and then "Start without debugging".

This should get you on your way!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.