mikefourie-zz / MSBuildExtensionPack

MIT License
366 stars 104 forks source link

Add support for the `setProfileEnvironment` attribute when creating a new IIS Application Pool #89

Open icnocop opened 5 years ago

icnocop commented 5 years ago

I'd like to request the ability to set the setProfileEnvironment attribute when creating a new IIS Application Pool.

The setProfileEnvironment attribute was added to IIS 8.0. See https://docs.microsoft.com/en-us/iis/configuration/system.applicationhost/applicationpools/add/processmodel#compatibility

For example,

<MSBuild.ExtensionPack.Web.Iis7AppPool
    TaskAction="Create"
    Name="NewAppPool100"
    SetProfileEvironment="True" /> 

The result should update C:\Windows\System32\inetsrv\Config\applicationHost.config accordingly.

For example,

<configuration>
    <system.applicationHost>
        <applicationPools>
            <add name="NewAppPool100">
                <processModel setProfileEnvironment="true" />
            </add>
        </applicationPools>
    </system.applicationHost>
</configuration>

Does this require creating a new task, Iis8AppPool?

Thank you.