Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Compile and Execute a C# project

Status
Not open for further replies.

pal4pals

Programmer
Jun 10, 2002
3
IN
Hi,

I am a Programmer working on the C#. I have the SDL installed on my system but I dont have an IDE. Can somebody help me to Compile and Execute my C# project on the Dos prompt. I tried to use csc, but I was able to just Compile one form. What I need is to compile many forms together (MDI forms) and build an EXE. Somebody Pls help. I was Using an IDE before, but the system in which I am now working doesnt has an IDE and I am asked to compile and execute the project without an IDE. I know it is possible. But I dont know how. Pls sombody help.
 
See if your system has MAKE or NMAKE on it. You create a .mak file which contains instructions to the compiler/linker on how to build your project. You then can build it by issuing:
Code:
make myproject.mak
which then builds the files that are out of date and then links them into your finished EXE or DLL.

Of course, learning how to structure a .mak file is a needed skill, but once you realize that each bit in the file consists of a target file and it's dependencies, that hurdle is easily overcome.

The MAKE utility has been around forever, and if you don't already have it on your system you can download a freeware version off the Internet.

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top