C#

Moderators: None (Apply to moderate this forum)
Number of threads: 2722
Number of posts: 5749

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
How can I compile c# program from command line Posted by NadiaDC on 16 May 2009 at 8:52 AM
I tried to compile c# program from command line and I recieved this message "The name specifined is not recognized as an internal or external command, operable program or batch file."
Report
Re: How can I compile c# program from command line Posted by Psightoplazm on 16 May 2009 at 1:48 PM
I assume you are attempting to run the csc.exe executable from the command prompt - if so, that error means the path you are giving the command prompt is the wrong one. So if for example 'csc.exe' is stored on your C drive you would specify 'c:\csc.exe'.
What usually causes this is you have a space or something in one of the directories in your path and you are not enclosing the path in quotation marks
So instead of
C:\My Directory\csc.exe

you should be using
"C:\My Directory\csc.exe"

oooor if you are just typing in "csc" as stated in the msdn article here then your computer is saying that it doesn't know where csc is and you have to either set it up to know where it is, or just specify the path of csc yourself.
></\/~Psightoplasm`~
Report
Re: How can I compile c# program from command line Posted by libicong00 on 18 May 2009 at 3:04 AM
The right answer
Report
Re: How can I compile c# program from command line Posted by libicong00 on 18 May 2009 at 3:05 AM
The right answer
Report
Re: How can I compile c# program from command line Posted by libicong00 on 18 May 2009 at 3:05 AM
The right answer



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.