CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2007
    Posts
    11

    My console comiler doesn't work

    Code:
    D:\testconsole>csc test.cs
    'csc' is not recognized as an internal or external command,
    operable program or batch file.
    test.cs was made in notepad, but computer doesnt reckognize "csc" command, I have installed .NET on my computer "VS" works fine, what is happening?

  2. #2
    Join Date
    Aug 2007
    Location
    Stoke, UK
    Posts
    8

    Re: My console comiler doesn't work

    You have installed the .NET SDK?

  3. #3
    Join Date
    Sep 2007
    Posts
    11

    Re: My console comiler doesn't work

    probably not! Becouse I didn't downloaded it yet . I will now. I hope this was the problem.

  4. #4
    Join Date
    Aug 2007
    Location
    Stoke, UK
    Posts
    8

    Re: My console comiler doesn't work

    Well if you did not, that will be your problem, the .NET SDK contains the command line compiler.

  5. #5
    Join Date
    May 2007
    Posts
    1,546

    Re: My console comiler doesn't work

    As does visual studio.

    The problem is that the folder that csc is in isn't in your PATH. Either run the visual studio command prompt thingy, or search your computer for 'csc.exe' and add the path to it to your $PATH.
    www.monotorrent.com For all your .NET bittorrent needs

    NOTE: My code snippets are just snippets. They demonstrate an idea which can be adapted by you to solve your problem. They are not 100% complete and fully functional solutions equipped with error handling.

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

Featured