embed dll file into exe and release physical file

162 Views Asked by At

using Fody/Costura to embedding dll file to single file is ok and all works good . but if i physically put dll file in executable folder and run application , application hook dll file and when i want to edit or delete dll file it throw an exception that this file is use , is it possible to solve this problem ?

--Update using AppDomain.CurrentDomain.AssemblyResolve += CurrentDomain_AssemblyResolve; we can handle resoloving library . but if dll file exist in bin filder this method not fired to set loading library

0

There are 0 best solutions below