How to add folder to assembly search path at runtime in .NET?

前端 未结 8 2072
慢半拍i
慢半拍i 2020-11-22 07:08

My DLLs are loaded by a third-party application, which we can not customize. My assemblies have to be located in their own folder. I can not put them into GAC (my applicatio

8条回答
  •  北恋
    北恋 (楼主)
    2020-11-22 07:43

    look into AppDomain.AppendPrivatePath (deprecated) or AppDomainSetup.PrivateBinPath

提交回复
热议问题