October 8th, 2003, 02:36 PM
Please Help Compiling C#
I am having trouble compiling some .cs files, I'm new to C# or .Net but so far I have .net framework installed, Visual Studio.net, but I want to be able to complie via command prompt.
here is a copy of what I'm doing and getting in the cmd prompt
'CSC' is not recognized as an internal or external command,
operable program or batch file.
Volume in drive C is OS
Volume Serial Number is B47D-7209
Directory of C:\LESSONS
10/08/2003 12:10 PM <DIR> .
10/08/2003 12:10 PM <DIR> ..
10/08/2003 12:10 PM 109 helloWorld.cs
1 File(s) 109 bytes
2 Dir(s) 5,798,752,256 bytes free
BTW: I have checked that the .Net frame work is installed and the file csc.exe is located inside the.net folder of the C:\SYSTEM\...
What am I doing wrong?
Last edited by lito; October 8th, 2003 at 02:39 PM.
October 8th, 2003, 11:45 PM
put "C:\SYSTEM\..." into your "Path" environment variable
Goto "System Property" by right click on your "My Computer", left click on "Property"
Goto "Advanced" tab
Click on "Environment Variables..." (alt+e)
you should be able to find variable "Path" in your "System Variables". Edit variable "Path" by typing "; C:\System\..." to the end of the variable value. (where "C:\System\..." is the folder location of your csc.exe)
"OK" to close all dialogs, and try again.
October 9th, 2003, 02:54 PM
thank you very much!!!
that did the trick