C# compiler on the command line?

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?
 
C

cody

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.
 
G

Guest

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
 
J

John Salerno

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top