Stack Overflow Asked by Suns Flower on November 24, 2021
Problem Statement
I’m implementing some sort of a Shadow Copy in C# when loading dll, to prevent the dll file from being locked. It works as follows:
Constraints
I know I can use Assembly.Load(byte[]) or Assembly.LoadFile() to achieve this. But they can’t be used (at least I didn’t figure out how), because of a rather complicated situation:
Questions
Thanks in advance!
You want LoadFile - LoadFrom gets assembly information from the URI then loads the known assembly. LoadFile exists explicitly for this type of use case.
"Use the LoadFile method to load and examine assemblies that have the same identity, but are located in different paths"
Answered by yugami on November 24, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP