简体   繁体   中英

How can I avoid Excel-DNA add-in from locking external library dlls?

I was building an Excel-DNA add-in with an auto update feature, as per @Govert's suggestion on another stack overflow question I used parts of the add-in reloaded sample to reload the add-in when a specific flag file is overwritten after copying the updated add-in files, This all works great but some of the dlls that are loaded as external libraries on the reloaded add-in are locked by excel how can I load them so that they won't be locked?

I have tried setting the loadfrombytes flag to true on the dna file.

Both the reloaded and the reloaded add-ins main dlls are not being locked, only external libraries I added to the reloaded add-in are locked one example is log4net.dll.

I am also not packing my add-in.

Thanks.

Reloading of Excel-DNA add-ins without restarting Excel is currently limited to:

  • Add-ins that don't use any of the COM features (eg Ribbon, CTP, RTD, etc.)
  • Add-ins that don't reference any other assemblies

You can request improvements to this feature by opening an issue in the main repository: https://github.com/Excel-DNA/ExcelDna

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM