Question

How do you use the nant <copy> command and maintain the directory structure? This is what I am doing, but it is copying all the files to a single directory.

<copy todir="..\out">
  <fileset>
    <includes name="..\src\PrecompiledWeb\**\*" />
  </fileset>
</copy>
Was it helpful?

Solution

Try:

<fileset baseDir="../src/PrecompiledWeb"><includes name="**/*" />
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top