Web Deployment Error. Copy Files

S

shapper

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
 
S

shapper

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,831
Latest member
RusselWill

Latest Threads

Top