xcopy failing within TFSbuild
Posted
by mattgcon
on Stack Overflow
See other posts from Stack Overflow
or by mattgcon
Published on 2010-04-30T15:17:54Z
Indexed on
2010/05/06
5:38 UTC
Read the original article
Hit count: 566
I am using TFS2008 and within my TFSBuild.proj file I have a target that call xcopy to copy the build to the production website location for automation. However I am receiving the following error when running the build:
Task "Exec" Command: xcopy "\\test\TFSBuilds\Online System V2 Build to NETPUB_20100430.2\Debug\_PublishedWebsites\IPAMIntranet" "
C:\\Inetpub\wwwroot\IPAMOnlineSystem\IPAMIntranet\IPAMIntranet
" /E
Parse Error 'C:\\Inetpub\wwwroot\IPAMOnlineSystem\IPAMIntranet\IPAMIntranet' is not recognized as an internal or external command, operable program or batch file.
'" /E ' is not recognized as an internal or external command, operable program or batch file.
The following is my code line for the xcopy:
<Target Name="AfterDropBuild">
<Exec Command="xcopy "$(DropLocation)\$(BuildNumber)\Debug\_PublishedWebsites\IPAMIntranet" "$(RemoteDeploySitePath)" /E " /> </Target>
I have even tried single quotes around the file locations and actual double quotes insteand of the " symbols.
Why is this happening, can anyone decipher this for me and help me correct this.
© Stack Overflow or respective owner