XCopy your dependencies in a pre-build step

Ok, again – this isn’t really ground breaking or anything, but if you have a load of dependencies that you need to copy at build time to your bin folder, this is a nice script that goes into the pre-build events section of visual studio.

xcopy ..\..\..\lib\whateverframework\*.* . /E /D

The really neat part, is the /D switch  - this only copies files that have changed since they were last modified.

This entry was posted in Uncategorized. Bookmark the permalink.