简体   繁体   中英

Clarification of web deploy project settings

During a web deployment I'd like to change some ACL settings. I found this article describing the process.

The article includes the following code snippet:

<PropertyGroup>
    <!- Extends the AfterAddIisSettingAndFileContentsToSourceManifest 
        action to also set ACLs–>
    <IncludeCustomACLs>TRUE</IncludeCustomACLs>

    <AfterAddIisSettingAndFileContentsToSourceManifest Condition=“‘$(AfterAddIisSettingAndFileContentsToSourceManifest)’==”“>
        $(AfterAddIisSettingAndFileContentsToSourceManifest);
        SetCustomACLs;
    </AfterAddIisSettingAndFileContentsToSourceManifest>
</PropertyGroup>

My question relates to the Condition attribute. From the comment, it appears that the intent is to append SetCustomACLs to the AfterAddIisSettingAndFileContentsToSourceManifest property. But from the condition, it appears that this block is only evaluated when AAISAFCTSM is not already set, so this isn't an "extension" so much as a "set-if-null".

So do the comment and markup disagree, or am I missing something?

I believe the Condition is there to ensure that if you've set AfterAddIisSettingAndFileContentsToSourceManifest somewhere else in the build stack explicitly, then it wont be altered. Having said that, I'd say that you aren't missing something, it reads to me the exact same way it reads to you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM