Can Web Deploy's setAcl provider be used on a sub-directory?

后端 未结 2 1941
盖世英雄少女心
盖世英雄少女心 2020-11-29 06:33

I\'m trying to make a subdirectory in an MS Deploy package writable to the application pool user. Thanks to a helpful post about the setAcl provider by Kevin Leetham I was

2条回答
  •  悲&欢浪女
    2020-11-29 07:16

    FYI - this does work for a root website if you follow the convention specified in the post here: http://forums.iis.net/p/1176955/1977169.aspx#1977169

    ^$(_EscapeRegEx_MSDeployDirPath)\\@(CustomDirAcl)$
    {$(_MsDeployParameterNameForContentPath)}/@(CustomDirAcl)
    $(_DestinationContentPath)/@(CustomDirAcl)
    

    This post also has the benefit of being able to specify a block of subdirectories in a single ItemGroup.

提交回复
热议问题