Not all assemblies are being loaded into AppDomain from the bin folder

后端 未结 3 1367
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-20 11:29

I have the following method that should retrieve a list of loaded local (in bin folder) assemblies:

static IEnumerable GetLocalAssemblies()
          


        
3条回答
  •  悲哀的现实
    2020-12-20 11:48

    The CurrentDomain.GetAssemblies() only return loaded assemblies not all assemblies which are available in execution folder.

    This is what microsoft say about it "GetAssemblies method to get a list of all assemblies that have been loaded into the application domain." click here

提交回复
热议问题