c# - Get the paths of all referenced assemblies -
how paths of assemblies referenced executing assembly? getreferencedassmblies()
gives me assemblyname[]
s. how loaded from, there?
you cannot know until assembly loaded. assembly resolution algorithm complicated , can't reliably guess front do. calling assembly.load(assemblyname)
override reference assembly, , location property tells need.
however, really don't want load assemblies front, before jit compiler it. inefficient , likelihood of problems not zero. example fire appdomain.assemblyresolve
event before program ready respond it. avoid asking question.
Comments
Post a Comment