Go Back   RunUO - Ultima Online Emulation > Developer's Corner > Programming > C#

C# C# Discussion

Reply
 
Thread Tools Display Modes
Old 06-17-2006, 10:38 PM   #1 (permalink)
Forum Newbie
 
Join Date: May 2006
Posts: 33
Default csc.exe

Alright, i've been trying to get my csc to run for some time now but i'm just having no success.

Whats happening is when I d-click it it pops up for a split second then exits. So I added C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 to my path in hope that this would fix it, still no go.

So does anyone have any ideas on how to fix this? I am using windows xp.
stopthedrop is offline   Reply With Quote
Old 06-18-2006, 02:39 AM   #2 (permalink)
Forum Expert
 
Join Date: Aug 2004
Location: Redmond, WA
Age: 21
Posts: 1,288
Send a message via AIM to Sep102 Send a message via MSN to Sep102
Default

Quote:
Originally Posted by stopthedrop
Alright, i've been trying to get my csc to run for some time now but i'm just having no success.

Whats happening is when I d-click it it pops up for a split second then exits. So I added C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 to my path in hope that this would fix it, still no go.

So does anyone have any ideas on how to fix this? I am using windows xp.
That's completely natural, it just ends immediately because the program is finished running. csc.exe is a command-line compiler, just running it from in an Explorer window does nothing as it just outputs its error message that no input files were specified then exits, thus closing the command prompt winodw which is the action taken by Windows when an application running in a command prompt window exits.

If you want to use it, in the simplest case, open up a command prompt window (which should be All Programs/Accessories/Command Prompt in the Start menu) then use the command "csc.exe" or "csc" with any C# source files listed after the name of the file (e.g. "csc.exe CSharpFile.cs" to compile the file CSharpFile.cs with default assemblies referenced).
Sep102 is offline   Reply With Quote
Old 06-18-2006, 04:17 AM   #3 (permalink)
Forum Newbie
 
Join Date: May 2006
Posts: 33
Default

But it's not really necessary right? I could use something like Microsoft Visual C# to compile?
stopthedrop is offline   Reply With Quote
Old 06-18-2006, 11:17 AM   #4 (permalink)
 
Join Date: Oct 2003
Age: 25
Posts: 184
Default

Quote:
Originally Posted by stopthedrop
But it's not really necessary right? I could use something like Microsoft Visual C# to compile?
Right. If you have the actual IDE, you should rarely if ever need to use the command line compiler yourself (the IDE calls it for you).
__________________
Adam Clauss
Cabadam is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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 Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5