Support custom streams with file name info #734
Loading…
Reference in a new issue
No description provided.
Delete branch "simonferquel/add-support-for-filename-info-in-custom-streams"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Many operations involved in rewriting debug symbols assume the rewritten
assembly base stream is a FileStream to get file name information. This
may not always be the case.
To cover this, this changes the way file name is resolved so that a
custom stream implementing
IHaveAFileNamecan be understood by Cecil.Signed-off-by: Simon Ferquel simon.ferquel@unity3d.com
To add to this: This callsite in particular will write out an empty PDB path unless you write out to a file. This is undesirable in scenarios where you modify the assembly in memory and write to a
MemoryStreamwhich is later copied to to aFileStream. The net effect is that the resulting assembly will contain an empty PDB path. (I'm not sure what the best solution to this is, but this is the problem we are seeing.)Hey folks; Yeah I know that part is horrible.
Thanks for starting this discussion. I might not take this PR as is, but I'll think about how I want to fix this and get back to this PR.
Thanks again.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.