Salient Solutions

wrasslin ones and nones for fun and profit - Sky Sanders' Blog
posts - 96, comments - 70, trackbacks - 0

September 2009 Entries

Visual Studio 2008 Build Event XCopy Bug

Wondering why your post-build xcopy not working? From Microsoft Connect Thanks for reporting this bug. Unfortunately, after much investigation, we (MSBuild team) discovered that this is actually a documented bug in xcopy.exe. The owners of xcopy.exe claim that this bug is not worth fixing, and so there's not much we can do at this point. However, the good news is that there is a fairly simple (though completely non-intuitive and non-discoverable workaround), and that is to append "<NUL:" to the end of your xcopy command. So, in your case, just do this:     xcopy "$(TargetDir)*.*" "$(SolutionDir)..\bin\" /S /I /F <NUL: and that should work for you. If...

posted @ Saturday, September 05, 2009 4:51 AM | Feedback (12) | Filed Under [ CodeProject-Tip ]

Powered by: