Navigation

Search

Categories

On this page

Visual Studio Post Build Bug

Archive

Blogroll

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

RSS 2.0 | Atom 1.0 | CDF

Send mail to the author(s) E-mail

Total Posts: 17
This Year: 2
This Month: 0
This Week: 0
Comments: 1

Sign In
Pick a theme:

# Tuesday, March 09, 2010
Tuesday, March 09, 2010 11:11:00 PM UTC ( Visual Studio )

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.

Comments [0] | | #