My .net web app project also includes some unmanaged dlls as additional files. These are a couple of levels deep in subfolders.
When I publish this project I need these files to be copied to the bin
folder alongside all the other binaries.
No matter what settings I try, the best I can get is for them to be published into their existing folder structure which is not where I need them to be.
I've created a PostBuild event to copy the files and this works when building locally but not when publishing to a server. I've not been able to get PostPublish events to work in the same way.
Is there another way to achieve this?
Note this is similar but not the same as a previous question: Publish unmanaged DLL from referenced project