It's a typical task that one needs to automatically copy a 3rd party file (e.g. a DLL library) to the project's output directory as a post-build step. Here's how it can be achieved in Microsoft Visual Studio 2010 (MSBuild). Let's assume we have a file structure like this: