I simply want to copy all the files and folders from a network location to the build location (where the script is run). The following runs without error but no files are copied.
<PropertyGroup>
<FileRepositry>\\network_machine\c$\some_folder</FileRepositry>
</PropertyGroup>
</Target>
<Target Name="CopyFileRepository">
<Message Text="Copying file repository from $(FileRepositry)"/>
<CreateItem Include="$(FileRepositry)\**\*.*">
<Output ItemName="FileRepo" TaskParameter="Include" />
</CreateItem>
<Copy SourceFiles="@(FileRepo)"
DestinationFiles="@(FileRepo->'C:\\FileRepository\\%(RecursiveDir)%(Filename)%(Extension)')" ContinueOnError="false" />
<Message Text="Done." />
</Target>
The source directory has two folders in it: Media and Source. I have created the folders at my build location -> c:\filerepository\media , c:\filerepository\source
The build runs and completes but the files are never copied over.
Can someone tell me what's up?