Hi, is there a way to change the source file and line of a generated class?

We have a template system which generates a c# class code and compiles
it to an assembly, similar to the way as asp.net works. If now an
exception in the generated code occurs, the stack traces shows the
generated class and line of the generated code. What i want know is that
i change the debugging informations of the class to the path of the
original template file and the original line in template files. And as
addition and with a little bit luck, i hope that vs then opens the file
and jump to the line if a exception occurs while debugging the
application. The assembly is currently generated in memory.

Did you have tips or advice how can i do this?

Greets, Steve

--~--~---------~--~----~------------~-------~--~----~
--
mono-cecil
-~----------~----~----~----~------~----~------~--~---

Reply via email to