Running dotnet cli on jobe

Re: Running dotnet cli on jobe

by Dominique YOLIN -
Number of replies: 2
Hello Richard,

thank you so much for your quick response I really appreciate it.
I saw earlier post about mono, but since dotnet was release afterward, I did not even think about trying to install and use it, I was under the wrong assumption it was deprecated.

I installed it and run the test with a single file and it worked well

Then I tried to build a csproj since I want to be able to build a program with several source file, but I did not find a way to do it with mono (it seem msbuild and xbuild are both deprecated and mcs does not handle .csproj). But when I give all the cs file to the command line everything work fine and I'm able to create a test with multiple file for a single program

I just changed the cmd to
command_files = [ "mcs", "-out:tester.exe"]
for root, dirs, files in os.walk(os.getcwd()):
for file in files:
if file.endswith(".cs"):
command_files.append(os.path.join(root, file))

completedProc = subprocess.run(command_files,env=cs_env )

Thank you again for your help and great work on code runner :)

Dominique
In reply to Dominique YOLIN

Re: Running dotnet cli on jobe

by Richard Lobb -
Hi Dominique

Another user asked about running dotnet rather than mono. I managed to get it running, with some difficulty, though it hasn't had much testing. If you're interested, check out the last message or two in this thread: https://coderunner.org.nz/mod/forum/discuss.php?d=724

Richard
In reply to Richard Lobb

Re: Running dotnet cli on jobe

by Dominique YOLIN -
Thank you very much for the heads up, I’ll definitely take a look, I might need it in not too long time 😊
Merry Christmas and thank you for all the work with code runner 😊

Dominique