AJ
❔ Trying to run a command through C# on macOS
I'm currently utilising Jetbrains rider. My tutor has tasked me with creating a simple little C# transpiler, that will have source code, which works and builds into a CS file, after that it then needs to compile via Mono.
Everything works except trying to get the
csc build.cs
file working.
12 replies
❔ System.ArgumentOutOfRangeException: Index and length must refer to a location within the string.
I've been programming for a handful of years, but never to a level of complexity i've been comfortable with in C#, however now in university me and a friend have been taked with creating a small little programming language transpiler as a side project by our tutor. It's a simple Console application which can read information and then will (not complete yet) dump it into a C# file.
Somehow I managed to do this in python before, but C# is giving me some headache.
Code:
Input:
70 replies