Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Missing dll when deploying ClickOnce

When I publish a ClickOnce application, one of the references that is included in one of my projects is missing.

If I go to my project's Properties -> Application Files, this missing reference is not even listed here.

My bin/Release folder has an .exe.manifest file, and I noticed it that it is also missing from here.

However, when I build the project, the DLL is in fact copied to my bin/Release folder.

How can I ensure it also deploys this required dependency?

like image 742
lost_bits1110 Avatar asked Oct 16 '12 17:10

lost_bits1110


1 Answers

I finally found a solution for this problem and I hope it will solve your problem to. In my case, I'm editing an old application at work which have multiple projects, but the main project and it's back end project are the most important here. The back end is added in the References section of the main project. In the back end, a third party dll was imported, but this dll requires 2 other dlls. So those 3 dlls were added in the References section of the back end project.

At that point, one of the 2 other dlls was not showing in the Application Files section for ClickOnce. I've come up with a couple of ways of fixing it, but the most elegant one was to add this dll in the Reference section of the main project.

like image 83
christ.s Avatar answered Oct 31 '22 20:10

christ.s