Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today

Thread Tools Search this Thread Display Modes
Old 11-16-2008, 05:29 PM   #1
Baseband Member
Join Date: Nov 2008
Posts: 91
Default VC# compile problem

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.

BobLewiston is offline   Reply With Quote
Old 11-17-2008, 06:06 AM   #2
Daemon Poster
xtremezx2's Avatar
Join Date: Sep 2006
Posts: 915
Default Re: VC# compile problem

I've never compiled from a cmd prompt. If you want to compile the program just hit the build button. The press start to run it. It's not very involved at all, actually it's quite simple.

xtremezx2 is offline   Reply With Quote
Old 11-17-2008, 06:11 AM   #3
Fully Optimized
UK31337's Avatar
Join Date: Feb 2005
Posts: 2,776
Default Re: VC# compile problem

You probably don't have csc on your system path therefore Windows doesn't know where it is and can't run it.
Master of common sense. If you don't like it, stop reading.
UK31337 is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

All times are GMT -5. The time now is 05:53 PM.

Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0