Here’s a bug I found in Visual Studio 2008. Hopefully it will be fixed in the 2010 version. Projects in a system I work on often have an Xcopy post build commands to copy the DLL and PDB to a reference directory. I recently added one of these commands to an existing project:
xcopy /f /d /y
"D:\Work\casfw3\trunk\Source\Common\QuickAddressProv6\bin\Debug\*.*"
"D:\Work\casfw3\trunk\Source\Common\QuickAddressProv6\..\..\..\..\References\Common\"
if errorlevel 1 exit %25errorlevel%25
Visual Studio 2008 reported that it copied two files for the commands. But when you go and look for the files they are not to be found. Of course I rebuilt the project several times but a file search of the tree could not find the copied files.
I copied the command to a command line window and the Xcopy command returns “0 Files Copied”. I then realized I was trying to go up one too many folders (“..\”). I made the correction and using the command line the files were successfully copied by Visual Studio.