iIIS 1.0.2

There is a newer version of this package available.
See the version list below for details.
Install-Package iIIS -Version 1.0.2
dotnet add package iIIS --version 1.0.2
<PackageReference Include="iIIS" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add iIIS --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: iIIS, 1.0.2"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install iIIS as a Cake Addin
#addin nuget:?package=iIIS&version=1.0.2

// Install iIIS as a Cake Tool
#tool nuget:?package=iIIS&version=1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

What is iIIS?

iIIS is a lightweight implementation that allows you to install and add features to an Internet Information Services (IIS) installation using .NET code.

Usage

Examples

  1. Configures IIS features from custom features synchronously (For more information, please see IIS.ConsoleApp project)

    FeatureCommandsCollection commands = Configurator.CreateCommands(Configurator.GetAllFeatures());
    commands.Process();
    
  2. Configures IIS features from custom features asynchronously (For more information, please see IIS.ConsoleAsyncApp project)

    FeatureCommandsCollection commands = Configurator.CreateCommands(Configurator.GetAllFeatures());
    await commands.ProcessAsync();
    
  3. Configures IIS features from XML configuration file (For more information, please see IIS.ConsoleApp project)

    XML content file used for this example

     <?xml version="1.0" encoding="utf-8"?>
    
     <IIS xmlns="http://schemas.itin.com/utilities/iis/configurator/v1.0">
       <Configuration>
         <Features>
           <Feature Name="WebServerRole"/>
           <Feature Name="WebServer"/>
           <Feature Name="CommonHttpFeatures"/>
           <Feature Name="HttpErrors"/>
           <Feature Name="HttpRedirect"/>
           <Feature Name="NetFxExtensibility"/>
           <Feature Name="HealthAndDiagnostics"/>
           <Feature Name="HttpLogging"/>
           <Feature Name="HttpTracing"/>
           <Feature Name="Security"/>
           <Feature Name="RequestFiltering"/>
           <Feature Name="IPSecurity"/>
           <Feature Name="Performance"/>
           <Feature Name="WebServerManagementTools"/>
           <Feature Name="IIS6ManagementCompatibility"/>
           <Feature Name="Metabase"/>
           <Feature Name="StaticContent"/>
           <Feature Name="DefaultDocument"/>
           <Feature Name="DirectoryBrowsing"/>
           <Feature Name="ISAPIExtensions"/>
           <Feature Name="ISAPIFilter"/>
           <Feature Name="ASPNET"/>
           <Feature Name="CustomLogging"/>
           <Feature Name="BasicAuthentication"/>
           <Feature Name="HttpCompressionStatic"/>
           <Feature Name="ManagementConsole"/>
           <Feature Name="ManagementService"/>
           <Feature Name="WMICompatibility"/>
           <Feature Name="LegacyScripts"/>
           <Feature Name="WindowsAuthentication"/>
         </Features>
       </Configuration>
     </IIS>
    

    .NET synchronous Code:

    IISModel model = IISModel.LoadFromFile("~\\resources\\IIS-Features.xml");
    FeatureCommandsCollection commands = Configurator.CreateCommands(model);
    commands.Process();
    

    .NET asynchronous Code:

    IISModel model = IISModel.LoadFromFile("~\\resources\\IIS-Features.xml");
    FeatureCommandsCollection commands = Configurator.CreateCommands(model);
    await commands.ProcessAsync();
    

Changes

For more information, please visit the next link CHANGELOG

  • .NETFramework 4.6.1

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.3 129 10/10/2020
1.0.2 160 8/4/2020
1.0.1 275 3/21/2020
1.0.0 242 1/27/2020