Solved

Compiling simple C# program in Visual studio .NET editor

Posted on 2004-03-31
4
342 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
4 Comments
 
LVL 3

Expert Comment

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

Author Comment

by:amrutha_vk
Comment Utility
sir,
Will u please explain it in detail
0
 
LVL 5

Accepted Solution

by:
AdrianJMartin earned 20 total points
Comment Utility
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
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now