|
-
Jan 28th, 2007, 10:37 AM
#1
Thread Starter
Hyperactive Member
Running C#.NET from MS DOS command line
I was trying to run a program (HelloWorld) in C#.NET from DOS command line by using the following command:
csc hello.cs
However it is not working. I am getting the following message:
'cpc' is not recognized as an internal or external command,
operable program or batch file.
what am I doing wrong?
-
Feb 1st, 2007, 08:27 AM
#2
Re: Running C#.NET from MS DOS command line
You have to use the Visual Studio command prompt, as opposed to the regular Windows command prompt, to set up the appropriate environment variables. Note that there is no DOS any more.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|