GIDForums  

Go Back   GIDForums > Computer Programming Forums > .NET Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 16-Nov-2008, 16:28
BobLewiston BobLewiston is offline
Junior Member
 
Join Date: Nov 2008
Posts: 53
BobLewiston is on a distinguished road

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.
  #2  
Old 16-Nov-2008, 17:07
LuciWiz's Avatar
LuciWiz LuciWiz is offline
Moderator
 
Join Date: Jul 2004
Location: Cluj-Napoca (Romania)
Posts: 1,031
LuciWiz is a jewel in the roughLuciWiz is a jewel in the roughLuciWiz is a jewel in the roughLuciWiz is a jewel in the rough

Re: VC# compile problem


Under the Visual Studio Tools submenu (or something similar) you should find the "Visual Studio Command Prompt', which will have the environment set for using the compiler.

To invoke it from the normal prompt, you can navigate to the installation location - usually "C:\WINDOWS\Microsoft.NET\Framework\{version-number}".

To invoke it from any location, you need to add the path to the Environment Variables. Don't forget to restart Visual Studio. If you start it by opening the .sln file, make sure you restart the File Manager as well (Total Commander, for instance), since the IDE will inherit the Environment Variables from it.

Best regards.
Lucian
__________________
Please read these Guidelines before posting on the forum

"A person who never made a mistake never tried anything new."
Einstein
  #3  
Old 16-Nov-2008, 17:10
LuciWiz's Avatar
LuciWiz LuciWiz is offline
Moderator
 
Join Date: Jul 2004
Location: Cluj-Napoca (Romania)
Posts: 1,031
LuciWiz is a jewel in the roughLuciWiz is a jewel in the roughLuciWiz is a jewel in the roughLuciWiz is a jewel in the rough

Re: VC# compile problem


Moved to the .NET Forum.
__________________
Please read these Guidelines before posting on the forum

"A person who never made a mistake never tried anything new."
Einstein
 
 

Recent GIDBlogInstall Adobe Flash - Without Administrator Rights by LocalTech

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Knights tour problem (using brute force) harry1617 C++ Forum 5 21-Apr-2008 15:11
g++ compile error, somewhat difficult problem mfergus3 C++ Forum 6 28-Sep-2007 01:10
Torrents Download Problem chandeep Computer Software Forum - Linux 7 09-Oct-2006 22:37
conditional compile logic cable_guy_67 C++ Forum 15 03-Dec-2005 18:44
a significant problem after installing Xp mohammad Computer Software Forum - Windows 10 09-Aug-2005 07:03

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 20:29.


vBulletin, Copyright © 2000 - 2010, Jelsoft Enterprises Ltd.