Saturday, March 24, 2012

Web Deployment Error. Copy Files

Hello,
I have the following code:
<Target Name="AfterBuild">
<MakeDir Directories="$(OutputPath)\B" />
<Copy SourceFiles="$(OutputPath)\A\*.*" DestinationFolder="$
(OutputPath)\B" />
<RemoveDir Directories="$(OutputPath)\A" />
I get the following error:
"Unable to copy file ".\Debug\\A\*.*" to ".\Debug\\B\*.*". Illegal
characters in path"
Does anyone knows what is wrong?
I can't find the problem.
Thanks,
MiguelOn Jan 8, 3:17 pm, shapper <mdmo...@.gmail.com> wrote:
> Hello,
> I have the following code:
> <Target Name="AfterBuild">
> <MakeDir Directories="$(OutputPath)\B" />
> <Copy SourceFiles="$(OutputPath)\A\*.*" DestinationFolder="$
> (OutputPath)\B" />
> <RemoveDir Directories="$(OutputPath)\A" />
> I get the following error:
> "Unable to copy file ".\Debug\\A\*.*" to ".\Debug\\B\*.*". Illegal
> characters in path"
> Does anyone knows what is wrong?
> I can't find the problem.
> Thanks,
> Miguel
I tried the following ( changed $(OutputPath) to $(WDTargetDir) ):
<MakeDir Directories="$(WDTargetDir)B" />
<Copy SourceFiles="$(WDTargetDir)A\*.*" DestinationFolder="$
(WDTargetDir)B" />
I keep having an error but now this seems a bug. The error is:
Unable to copy file "C:\MyProject\Debug\A\*.*" to "C:\MyProject\Debug\B
\*.*".
Illegal characters in path.
See the destination folder. It also includes *.*. Isn't this strange?
Thanks,
Miguel

0 comments:

Post a Comment