#1
  1. MACTEP /\OMACTEP
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2002
    Location
    Seattle, WA
    Posts
    150
    Rep Power
    13

    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

    PHP Code:
    C:\LESSONS>csc helloWorld.cs
    'CSC' is not recognized as an internal or external command,
    operable program or batch file.

    C:\LESSONS>dir
     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

    C
    :\LESSONS

    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.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Location
    Brisbane, Australia
    Posts
    50
    Rep Power
    12
    ......
    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.
  4. #3
  5. MACTEP /\OMACTEP
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2002
    Location
    Seattle, WA
    Posts
    150
    Rep Power
    13
    thank you very much!!!

    that did the trick

IMN logo majestic logo threadwatch logo seochat tools logo