I'm having trouble getting an ItemGroup to store the files on a Windows share. If I use a local folder ItemGroup contains the list of files, if I use an address in the form of \\machine\share the ItemGroup is empty.
My target includes the following:
<ItemGroup>
<FilesToDelete Include="$(WebServer)\**\*" />
</ItemGroup>
<Delete Files="@(FilesToDelete)" />
where
<WebServer>\\localhost\website</WebServer>
With the above, FilesToDelete will be empty. If I use a local path for the WebServer property the files get enumerated correctly.
Any ideas?