MoscaCareca
C# 5+ compiler
Basically, what's going on is the following: I have around 150 C# "problems" that I'm sending to a coding model one by one. Each problem follows this structure:
where
// Your code here
is replaced by the model's response and // Tests will go here
is replaced by a set of predefined tests.
I then place this on a .cs
file, after which I want to programmatically compile the .cs
file which I was doing it by invoking csc
using a subprocess. I check if the compiler threw an error and if not I just run the resulting .exe
file and check if the tests passed.
I hit a wall because some of the responses I'm getting use features from a language version later than C# 5, which csc
does not support.
I was hoping there was another plug-in option I could use, something as simple as installing a different compiler and calling a command akin to csc myfile.cs
but as you've all told me, there isn't.72 replies