✅ I need help with compiling an console application exe with the Roslyn compiler
Hi there, ive been working on a funky little program for fun, and its basically supposed to be a weird and very unpractical "visual scripting" ish kind of thing.
However instead of having it be saved as a pure intermediate instruction set, i want it to be able to be compiled to an actual C# application.
i have gotten a .exe file compiled without any diagnostics errors, however when i try to run the application it it greets me with an error.
i have these files in the output derectory, where the deps.json and runtimeconfig.json are generated by some of my code and thus i have no clue if they are right.
https://paste.ofcode.org/Zwv6auNsjBkkSU29JQZE3x
Here is my compilation class (i know, its extremely ugly but its my first time trying this. I intend to refine everything once i got it working at least)
However instead of having it be saved as a pure intermediate instruction set, i want it to be able to be compiled to an actual C# application.
i have gotten a .exe file compiled without any diagnostics errors, however when i try to run the application it it greets me with an error.
Unhandled Exception: System.TypeLoadException: Could not load type 'System.Object' from assembly 'System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' because the parent does not exist.i have these files in the output derectory, where the deps.json and runtimeconfig.json are generated by some of my code and thus i have no clue if they are right.
https://paste.ofcode.org/Zwv6auNsjBkkSU29JQZE3x
Here is my compilation class (i know, its extremely ugly but its my first time trying this. I intend to refine everything once i got it working at least)
