Reflection.Assembly :: Load Method
When I try to load an assembly using this method, what are the differences between long name and partial name? From MSDN I get the following: for long name: a complete assembly reference is required if you are referencing any assembly that is part of the shared runtime or any assembly located in the global assembly cache. for partial name: the runtime only looks for the assembly in the application directory
And the client ran into an error because I used a partial name to load the assembly, but the assembly was exactly in the application directory.
So, I want to know if there are any other differences between long name and partial name when using the Load (string) method?
Thank you so much!
source to share
@gTiancai: AssemblyName.CodeBase property might be useful in safer situations .
It might help: Assembly loading guidelines
source to share