Linenumber for Exception thrown in runtime-compiled DotNET code
- by David Rutten
Not quite the same as this thread, but pretty close.
My program allows people to enter some VB or C# code which gets compiled, loaded and executed at runtime. My CompilerParams are:
CompilerParameters params = new CompilerParameters();
params.GenerateExecutable = false;
params.GenerateInMemory = true;
params.IncludeDebugInformation = false;…