VC# compile problem

BobLewiston

In Runtime
Messages
182
I installed VC# 2008 Express. Following the lessons at C# School at programmersheaven.com, I tried to compile the sample app HelloWorld

from the command prompt via:

csc HelloWorld.cs

but I got back:

'csc' is not recognized as an internal or external command, operable program or batch file.

As far as I know, the VC# install is OK. When I did the install, it said it was also installing .Net 3.5, SQL and a lot of other stuff, so I assume it also installed the actual compiler(s). When I click on the desktop icon, the IDE comes up without any error messages.

I didn't try to compile from the IDE though, because it looked a bit more involved, so I thought I'd follow the lessons in order.

Any idea where I went wrong?

P.S. I'm running under Windows XP Professional, Service Pack 2.
 
I've never compiled from a cmd prompt. If you want to compile the program just hit the build button. The press start to run it. It's not very involved at all, actually it's quite simple.
 
You probably don't have csc on your system path therefore Windows doesn't know where it is and can't run it.
 
Back
Top Bottom