简体   繁体   中英

Clickonce deploy external dll reference not found

I'm trying to deploy an application written in wpf c#. I use an external library (irrklang). I added a reference in visual studio to that dll (it is placed in the same folder as the executable). It shows up in my application files, I deploy, install on a different machine and I get the file not found exception. I looked up the exe folder and the DLL is in the folder.

What am I doing wrong, the reference seems to be correct but the program isn't finding the dll at all

UPDATE: added solution below. Still same error:(

Check the following points:

  • Properties of the DLL -> Use local copy = true
  • Project Properties -> ClickOnce Properties -> ApplicationFiles -> Check if your dll is enlisted and manually set "Include" on it.

Then try again. ClickOnce often has annoying bugs.

发现它,外部dll需要visual studio可再发行。

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