Trying to configure the editor to execute C# code

Discussion Forums discussion Trying to configure the editor to execute C# code

This topic contains 1 reply, has 2 voices, and was last updated by  simon 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
Author Posts
Author Posts
December 23, 2013 at 6:22 am #20049

357mag
Participant

I have successfully configured the editor to compile and execute Java code, now I’m trying to do the same for C# but I’m having problems. What do I put in the boxes for Folder and Parameters and especially Command?

I found a video on YouTube where a guy showed how to configure it for Java but he didn’t show how to configure it for C#.

And since there is not a similar command with an extension like .java has to execute the file how to I set these boxes up?

December 31, 2013 at 11:41 am #20051

simon
Key Master

From recollection you need to run csc.exe against your .cs file to produce an executable. Something like this:

Command: csc
Parameters: /out:test.exe *.cs
Folder: %d

Lots more examples here for csc parameters:

http://msdn.microsoft.com/en-us/library/78f4aasd.aspx

Also consider setting up an msbuild script for your code which will be easy to use to build complex projects.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.