Cannot Delete mapped directory with MSBuild

Cannot Delete mapped directory with MSBuild

am 08.11.2007 22:13:11 von specialrider

I have my X: drive mapped to a local directory. In my MSBuild script I
call Delete:



The delete never works and i get the following error:

error MSB3061: Unable to delete file "X:\Shared Libraries\Re
lease\2.0Lib\Sis.DocBuild\Templates\ActivityDetail.xsd". Access to the
path 'X:\Shared Libraries\Release\2.0Lib\Sis.DocBuild\Templates
\ActivityDetail.
xsd' is denied.

I have gone to the security settings on X and given full control to
everyone. Still doesnt work.
All of the files are NOT read only.
Ive verified that the path is correct.

Maybe there is something simple Im missing here. Directory security in
windows always seems to be a pain in arse for me.

anyone have suggestions for how to get this delete to work?

thanks,

joe