C# compiler on the command line?

  • Thread starter Thread starter John Salerno
  • Start date Start date
J

John Salerno

I just installed the SDK, but when I typed csc /help on the command line
(from the C: directory), it said 'csc' wasn't a recognized command. Why
didn't that work? Do I need to be in a different directory?
 
you have to either type the full path where you installed the sdk in or you
have to add the path to your sdk to your PATH environment variable.
 
John Salerno said:
I just installed the SDK, but when I typed csc /help on the command line
(from the C: directory), it said 'csc' wasn't a recognized command. Why
didn't that work? Do I need to be in a different directory?

Command prompt uses the PATH environment variable to locate programs. Add
the directory containing the compiler to you path and you should be fine. On
my machine, the compiler is here:

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
 
MarkT said:
Command prompt uses the PATH environment variable to locate programs. Add
the directory containing the compiler to you path and you should be fine. On
my machine, the compiler is here:

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322

Thanks. I guess I need to do a little more reading up on the command
line first.
 
Back
Top