Results 1 to 3 of 3

Thread: Compiling and running from a command line

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2002
    Location
    London
    Posts
    19

    Compiling and running from a command line

    Hi, just starting C#.

    Trying to compile from the C prompt and get an error, any ideas?


    C:\>csc /debug hello.cs
    'csc' is not recognized as an internal or external command,
    operable program or batch file.

  2. #2
    Member
    Join Date
    Jul 2002
    Posts
    39
    did u start the .net dos prompt or a normal dos one??

    u need to run it from the framewor folder in the start menu or it does not register the .net programs like the compilers.

  3. #3
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    I think there is an option when isntalling the framework to register the locations of those files so that you can run csc from a regular prompt in any directory, because on my machine I just use a regular prompt and I am able to run the tools from anywhere.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width