-
My bigger picture use-case is the following:
The problems now arise for me at the third step: If I want to compile class My problem now is that cecil re-writes the whole assembly from it's internal representation, which makes it error out when other code in the assembly references the deleted type. Is this just a problem of deleting the type "properly", so that it just cannot be resolved anymore?
sometimes it says that a specific member (method) would be used in a different module without importing. What can I do? Can I somehow make it use the "old" assembly when writing, so that it can read the type properly? Thanks in Advance for help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hello, Yes, as you say it's a matter of properly deleting the type, that is making sure that it's not in use anywhere else, otherwise when writing the assembly back you're going to get an exception. I'm afraid there's nothing built-in to make this easier. |
Beta Was this translation helpful? Give feedback.
Hello,
Yes, as you say it's a matter of properly deleting the type, that is making sure that it's not in use anywhere else, otherwise when writing the assembly back you're going to get an exception.
I'm afraid there's nothing built-in to make this easier.