newbie Unable to find csc.exe to compile

  • Thread starter Thread starter S Hall
  • Start date Start date
S

S Hall

I installed .NET Framework.
I've added the "C:\Winnt\Microsoft.Net\Framework\v1.0.3705" to my
Include file.
I've rebooted.

The only way I can compile C:\Temp\HelloWorld.cs
is to be in the above directory. Where I use:

csc HeolloWorld.cs

and it works.

How/Where do I set it so I do NOT have to be in the above directory
to compile?

Thanks.
Steve
 
S Hall said:
I installed .NET Framework.
I've added the "C:\Winnt\Microsoft.Net\Framework\v1.0.3705" to my
Include file.
I've rebooted.

The only way I can compile C:\Temp\HelloWorld.cs
is to be in the above directory. Where I use:

csc HeolloWorld.cs

and it works.

How/Where do I set it so I do NOT have to be in the above directory
to compile?

What do you mean by adding it to your "Include file"? It should be in
your path environment variable.
 
Jon Skeet said:
What do you mean by adding it to your "Include file"? It should be in
your path environment variable.

At the command prompt, I did a "Set".
That path was not part of the Include file. So I added it.
I did not have any errors when installing the software.

TIA
Steve
 
S Hall said:
At the command prompt, I did a "Set".
Fine.

That path was not part of the Include file. So I added it.

What do you mean by "the include file"? If you mean the include
environment variable, I understand what you mean but it's entirely
irrelevant to what you're trying to do. As I said before, it's your
*path* environment variable which is important.
 
Jon Skeet said:
What do you mean by "the include file"? If you mean the include
environment variable, I understand what you mean but it's entirely
irrelevant to what you're trying to do. As I said before, it's your
*path* environment variable which is important.

To set the path in 2000 and XP go to my computer, properties,
advanced, environment variables. You probably want to add
;"C:\Winnt\Microsoft.Net\Framework\v1.0.3705" to either your user or
system path.
 
Back
Top