I finally found a solution to this problem, and I hope this solves your problem. In my case, I am editing an old application at work that has several projects, but the main project and its rear project are the most important here. The back part is added in the "Links" section of the main project. A third-party dll was imported on the back side, but another 2 dlls are required for this DLL. Thus, these 3 libraries were added in the "Links" section of the back end project.
At this point, one of the other two dlls did not appear in the Application Files section for ClickOnce. I came up with a couple of ways to fix it, but the most elegant was to add this DLL to the Reference section of the main project.
christ.s
source share