I have a web service application that uses a library in another project of the same solution. The library is dependent on certain DLLs but these DLLs are not directly references (i.e., I cannot add project references).
I need to ensure that when I build and publish the web service all the necessary DLLs are in the BIN directory. I can't figure out how to do this.
I tried adding the DLLs to the project that uses them and then setting the Copy To Output Directory property to "Copy Always". If I build just the library, the DLL ends up in the BIN directory as expected, however, when I build the solution and publish the web service, the DLL isn't included in the output files. The Build Action for the DLL is "Content".
I don't necessarily want to add the DLLs to the web service project because I want the build process to determine that the DLLs are needed and copy them automatically. It had been suggested by a coworker that I put the files in the BIN directory of the web service application and then add that to source control, but I don't like putting the BIN directory in source control because that causes other problems.