-
Notifications
You must be signed in to change notification settings - Fork 579
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove assembly reference? #59
Comments
You don't need to remove anything. The assembly writer doesn't add assembly |
But the reference stays if I embed the assembly as a resource and extract it when the AppDomain wants to resolve it. |
There's some code that reference it, or the assembly reference wouldn't be added to the assembly. You can set a BP @ https://github.com/0xd4d/dnlib/blob/master/src/DotNet/Writer/MetaData.cs#L1917 and see which reference is still left in the code that needs that assembly. |
All references remain, that's the idea: however, instead of using an external assembly, I use an embedded resource and extract it when needed. This way, all references are embedded in the main assembly. |
Apparently, removing the reference is not necessary, so I close the issue. |
Is there a way to remove an assembly reference?
I want to write an application to embed or merge assemblies using dnlib; however, I'm stuck in an early stage, since I can't remove the referenced assembly.
The text was updated successfully, but these errors were encountered: