.Net Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - More.Net Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 8th, 2003, 03:36 PM
lito's Avatar
lito lito is offline
MACTEP /\OMACTEP
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Seattle, WA
Posts: 150 lito User rank is Private First Class (20 - 50 Reputation Level)lito User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 6 h 47 m 12 sec
Reputation Power: 7
Please Help Compiling C#

I am having trouble compiling some .cs files, I'm new to C# or .Net but so far I have .net framework installed, Visual Studio.net, but I want to be able to complie via command prompt.

here is a copy of what I'm doing and getting in the cmd prompt

PHP Code:
 C:LESSONS>csc helloWorld.cs
'CSC' is not recognized as an internal or external command,
operable program or batch file.

C:LESSONS>dir
 Volume in drive C is OS
 Volume Serial Number is B47D
-7209

 Directory of C
:LESSONS

10
/08/2003  12:10 PM    <DIR>          .
10/08/2003  12:10 PM    <DIR>          ..
10/08/2003  12:10 PM               109 helloWorld.cs
               1 File
(s)            109 bytes
               2 Dir
(s)   5,798,752,256 bytes free

C
:LESSONS



BTW: I have checked that the .Net frame work is installed and the file csc.exe is located inside the.net folder of the C:\SYSTEM\...

What am I doing wrong?

Last edited by lito : October 8th, 2003 at 03:39 PM.

Reply With Quote
  #2  
Old October 9th, 2003, 12:45 AM
oni9 oni9 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Brisbane, Australia
Posts: 50 oni9 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
......
put "C:\SYSTEM\..." into your "Path" environment variable

Goto "System Property" by right click on your "My Computer", left click on "Property"

Goto "Advanced" tab

Click on "Environment Variables..." (alt+e)

you should be able to find variable "Path" in your "System Variables". Edit variable "Path" by typing "; C:\System\..." to the end of the variable value. (where "C:\System\..." is the folder location of your csc.exe)

"OK" to close all dialogs, and try again.

Reply With Quote
  #3  
Old October 9th, 2003, 03:54 PM
lito's Avatar
lito lito is offline
MACTEP /\OMACTEP
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Seattle, WA
Posts: 150 lito User rank is Private First Class (20 - 50 Reputation Level)lito User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 6 h 47 m 12 sec
Reputation Power: 7
thank you very much!!!

that did the trick

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - More.Net Development > Please Help Compiling C#


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT