Skip to content

Is there a simple way to replace an assembly reference without a full import? #732

Answered by jbevain
Serg046 asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not 100% sure on what you're doing, but if I understand correctly the easiest solution in B.dll is to rename directly the assembly reference module.AssemblyReferences[x].Name += " _patched", this way all the references like types and methods will be automatically scoped to the _patched assembly reference.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Serg046
Comment options

@Serg046
Comment options

@jbevain
Comment options

Answer selected by Serg046
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #731 on March 15, 2021 23:28.