How to run a C # program on my school Linux server?

I would like to write a C # program in Visual Studio on my Windows computer, and then download it to my school Linux server and run the program there. Tasks are enabled through this server: my professor receives a file and runs it from his directory. Is this possible, and if so, how can I do this?

I read about Mono, but from my understanding of this, Mono is used to write and run C # applications on Linux, so if it is not on my school server, then I could not start the application. Therefore, even if I downloaded a copy of Mono into my personal directory on the server, my professor will not be able to run the program from his directory. Is it correct?

I would like to know if there is a way to do this with or without Mono.

Edit: The professor will run the program as follows:

$p1 testfile 

where "testfile" is the command line argument passed to my program. "p1" will probably be the script that I will write to run the program.

+4
source share
2 answers

I would suggest first checking to see if your school Linux mono machines are installed. Check the lib folder and see if there is a mono folder. The directory may not match exactly, but it should be something like this line:

 /usr/local/lib/mono/ ; various things here 

If there is no mono in the school system, I would ask the professor that the system administrator install mono on one or more machines. If this is not possible, I would go the way of packing it myself.

Check out the Mono project here .

+4
source

you can link your compiled application with the necessary runtime files so that the application can be run without a fixed battery life, but you must test it before giving them, and it would be easier if your professor installed mono.

: http://www.mono-project.com/Guide:Running_Mono_Applications

+4
source

All Articles