How can I stop Web Deploy resetting my folder permissions?
If you are deploying from Visual Studio you will need to alter your project file to prevent Web Deploy changing the permissions.
To accomplish this, simply navigate to your project and find the file with the extension .csproj
Find the section which looks similar to as follows:
HTML
<propertygroup condition=” ‘$(Configuration)|$(Platform)’ ==’Release|AnyCPU’ “> </propertygroup>Then include this element:
HTML
<includesetaclproviderondestination>False</includesetaclproviderondestination>If you placed your
If you are deploying from Azure DevOps, then include the following within the MSBuild Arguements:
HTML
/p:IncludeSetAclProviderOnDestination=False