Solved

Compiling simple C# program in Visual studio .NET editor

Posted on 2004-03-31
4
346 Views
Last Modified: 2010-04-16
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.
0
Comment
Question by:amrutha_vk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 3

Expert Comment

by:JavaInTheMorning
ID: 10722069
Open a new project (Console application) and then add your source file to this project and build it.
0
 

Author Comment

by:amrutha_vk
ID: 10722530
sir,
Will u please explain it in detail
0
 
LVL 5

Accepted Solution

by:
AdrianJMartin earned 20 total points
ID: 10723031
File menu -> New Project

select Visual C# Projects, windows appliaction

wait for the wizard to finish

presws f5 to build
0
 

Expert Comment

by:dotnet_programmer
ID: 10723228
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

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Suggested Courses

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question