I'm creating a zip file from msbuild using the package target. It creates it fine and the folder I'm putting it in has permissions for a user that allows that user to have full control of the folder. However, when I remove the zip file, then run msbuild to create the zip file again the zip file has lost the permissions for that user.
So then I am using a certain user to programatically deploy the package file and that user no longer has permissions.
How can I force that zip file to inherit the permissions from the parent folder so I don't have to manually add the permissions back to the zip file each time msbuild creates it?