I am trying to organize my VS 2010 solution. One area that is holding me back is the use of Unmanaged DLLs. I can’t add them as References because the DLLs are unmanaged. The previous approach was to xcopy the DLLs from a “lib” folder during the Pre/Post build events to the output folder. The downside of this was the unnecessary copying that occurs for every build and also the clean operation never removed the DLLs from the output folder.
My ideal solution would be to consolidate the DLLs in a VS lib folder and make use of the “Copy If Newer” feature. However, VS creates a lib folder in the output folder and places the DLLs there. Please note that I do not prefer to have the DLLs on the top level of my Project tree. There are a lot of DLLs and this seems to pollute the Project.