VC# compile problem

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Nov 2008
Posts: 80
Reputation: BobLewiston is an unknown quantity at this point 
Solved Threads: 0
BobLewiston BobLewiston is offline Offline
Junior Poster in Training

VC# compile problem

 
0
  #1
Nov 16th, 2008
I installed VC# 2008 Express. Following the lessons at C# School at programmersheaven.com, I tried to compile the sample app HelloWorld from the command prompt via:

csc HelloWorld.cs

but I got back:

'csc' is not recognized as an internal or external command, operable program or batch file.

As far as I know, the VC# install is OK. When I did the install, it said it was also installing .Net 3.5, SQL and a lot of other stuff, so I assume it also installed the actual compiler(s). When I click on the desktop icon, the IDE comes up without any error messages.

I didn't try to compile from the IDE though, because it looked a bit more involved, so I thought I'd follow the lessons in order.

Any idea where I went wrong?

P.S. I'm running under Windows XP Professional, Service Pack 2.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 2,052
Reputation: Rashakil Fol is just really nice Rashakil Fol is just really nice Rashakil Fol is just really nice Rashakil Fol is just really nice 
Solved Threads: 139
Team Colleague
Rashakil Fol's Avatar
Rashakil Fol Rashakil Fol is offline Offline
Super Senior Demiposter

Re: VC# compile problem

 
3
  #2
Nov 16th, 2008
csc is not in your path. Add the directory in which csc lives to your PATH environment variable.
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 80
Reputation: BobLewiston is an unknown quantity at this point 
Solved Threads: 0
BobLewiston BobLewiston is offline Offline
Junior Poster in Training

Re: VC# compile problem

 
0
  #3
Nov 16th, 2008
Originally Posted by Rashakil Fol View Post
csc is not in your path. Add the directory in which csc lives to your PATH environment variable.
As Johnny Carson used to say: "You are correct, sir."
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,162
Reputation: dickersonka will become famous soon enough dickersonka will become famous soon enough 
Solved Threads: 137
dickersonka dickersonka is offline Offline
Veteran Poster

Re: VC# compile problem

 
0
  #4
Nov 17th, 2008
maybe i'm more of an ide guy than command line, but for the editor, you just need to add a class and click Build - Build Solution and voila!!!!
Custom Application & Software Development
www.houseshark.net
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 1,973
Reputation: ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of 
Solved Threads: 286
ddanbe's Avatar
ddanbe ddanbe is offline Offline
Posting Virtuoso

Re: VC# compile problem

 
0
  #5
Nov 18th, 2008
In the pro version you can have a command window with all the needed paths preinstalled in the PATH variable.
In the express version you can use the "Create your first application" on the startpage. It opens a window wich contains a link to creating a console application as well.
But to be honest I'm more a dickersonka kinda guy! Use the IDE! Use the commandline if you absolutly can't do without it. I have seen enough unix commandlines in my life to know what I'm talking about.
Last edited by ddanbe; Nov 18th, 2008 at 2:00 pm. Reason: typo
Today is a gift, that's why it is called "The Present".
Make love, no war. Cave ab homine unius libri.
Danny
Reply With Quote Quick reply to this message  
Join Date: Apr 2007
Posts: 37
Reputation: bondo is an unknown quantity at this point 
Solved Threads: 0
bondo's Avatar
bondo bondo is offline Offline
Light Poster

Re: VC# compile problem

 
0
  #6
Nov 20th, 2008
if you don't want to add the location of csc to you path you could always fully qualify the location when you compile, ie: c:\windows\microsoft.net\framework\v2.0.blablabla\csc.exe helloworld.cs, although I don't know why on earth you would wanna type this in every time.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C# Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC