Microsoft.Extensions.Hosting 11.0.0-rc.1.26425.128

About

Contains the .NET Generic Host HostBuilder which layers on the Microsoft.Extensions.Hosting.Abstractions package.

Key Features

  • Contains the .NET Generic Host HostBuilder.

How to Use

For a console app project:

    using (IHost host = new HostBuilder().Build())
    {
        var lifetime = host.Services.GetRequiredService<IHostApplicationLifetime>();
    
        lifetime.ApplicationStarted.Register(() =>
        {
            Console.WriteLine("Started");
        });
        lifetime.ApplicationStopping.Register(() =>
        {
            Console.WriteLine("Stopping firing");
            Console.WriteLine("Stopping end");
        });
        lifetime.ApplicationStopped.Register(() =>
        {
            Console.WriteLine("Stopped firing");
            Console.WriteLine("Stopped end");
        });
    
        host.Start();
    
        // Listens for Ctrl+C.
        host.WaitForShutdown();
    }

Main Types

The main types provided by this library are:

  • Microsoft.Extensions.Host.
  • Microsoft.Extensions.Hosting.HostApplicationBuilder
  • Microsoft.Extensions.Hosting.HostBuilder
  • Microsoft.Extensions.Hosting.IHostedService
  • Microsoft.Extensions.Hosting.IHostedLifecycleService

Additional Documentation

  • Microsoft.Extensions.Configuration
  • Microsoft.Extensions.DependencyInjection
  • Microsoft.Extensions.Hosting.Abstractions
  • Microsoft.Extensions.Logging
  • Microsoft.Extensions.Options

Feedback & Contributing

Microsoft.Extensions.Hosting is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.

Showing the top 20 packages that depend on Microsoft.Extensions.Hosting.

Packages Downloads
Microsoft.AspNetCore.All
Microsoft.AspNetCore.All
39
Microsoft.Identity.Web
This package enables ASP.NET Core web apps and web APIs to use the Microsoft identity platform (formerly Azure AD v2.0). This package is specifically used for web applications, which sign-in users, and protected web APIs, which optionally call downstream web APIs.
39
Microsoft.Identity.Web
This package enables ASP.NET Core web apps and web APIs to use the Microsoft identity platform (formerly Azure AD v2.0). This package is specifically used for web applications, which sign-in users, and protected web APIs, which optionally call downstream web APIs.
40
Microsoft.Identity.Web
This package enables ASP.NET Core web apps and web APIs to use the Microsoft identity platform (formerly Azure AD v2.0). This package is specifically used for web applications, which sign-in users, and protected web APIs, which optionally call downstream web APIs.
41
Microsoft.Identity.Web
This package enables ASP.NET Core web apps and web APIs to use the Microsoft identity platform (formerly Azure AD v2.0). This package is specifically used for web applications, which sign-in users, and protected web APIs, which optionally call downstream web APIs.
42
Microsoft.Identity.Web
This package enables ASP.NET Core web apps and web APIs to use the Microsoft identity platform (formerly Azure AD v2.0). This package is specifically used for web applications, which sign-in users, and protected web APIs, which optionally call downstream web APIs.
43
Microsoft.Identity.Web
This package enables ASP.NET Core web apps and web APIs to use the Microsoft identity platform (formerly Azure AD v2.0). This package is specifically used for web applications, which sign-in users, and protected web APIs, which optionally call downstream web APIs.
44
Microsoft.Identity.Web
This package enables ASP.NET Core web apps and web APIs to use the Microsoft identity platform (formerly Azure AD v2.0). This package is specifically used for web applications, which sign-in users, and protected web APIs, which optionally call downstream web APIs.
45
Microsoft.Identity.Web
This package enables ASP.NET Core web apps and web APIs to use the Microsoft identity platform (formerly Azure AD v2.0). This package is specifically used for web applications, which sign-in users, and protected web APIs, which optionally call downstream web APIs.
50
Microsoft.Identity.Web
This package enables ASP.NET Core web apps and web APIs to use the Microsoft identity platform (formerly Azure AD v2.0). This package is specifically used for web applications, which sign-in users, and protected web APIs, which optionally call downstream web APIs.
51

https://go.microsoft.com/fwlink/?LinkID=799421

.NET 10.0

.NET Standard 2.0

.NET Framework 4.6.2

.NET Standard 2.1

.NET 11.0

Version Downloads Last updated
11.0.0-rc.1.26425.128 4 09/09/2026
11.0.0-preview.7.26381.103 3 08/19/2026
11.0.0-preview.6.26359.118 5 07/27/2026
11.0.0-preview.5.26302.115 7 06/16/2026
11.0.0-preview.4.26230.115 15 05/25/2026
11.0.0-preview.3.26207.106 11 04/16/2026
11.0.0-preview.2.26159.112 7 03/15/2026
11.0.0-preview.1.26104.118 18 02/12/2026
10.0.12 2 09/09/2026
10.0.11 3 08/19/2026
10.0.10 4 07/25/2026
10.0.9 8 06/16/2026
10.0.8 12 05/26/2026
10.0.7 14 05/06/2026
10.0.6 15 04/16/2026
10.0.5 11 03/15/2026
10.0.4 20 03/15/2026
10.0.3 18 02/12/2026
10.0.2 25 01/18/2026
10.0.1 13 12/13/2025
10.0.0 19 11/18/2025
10.0.0-rc.2.25502.107 20 10/19/2025
10.0.0-rc.1.25451.107 14 09/16/2025
10.0.0-preview.7.25380.108 32 08/14/2025
10.0.0-preview.6.25358.103 22 07/16/2025
10.0.0-preview.5.25277.114 21 06/25/2025
10.0.0-preview.4.25258.110 24 05/14/2025
10.0.0-preview.3.25171.5 18 05/14/2025
10.0.0-preview.2.25163.2 18 03/20/2025
10.0.0-preview.1.25080.5 22 02/25/2025
9.0.20 1 09/09/2026
9.0.19 3 08/19/2026
9.0.18 11 07/25/2026
9.0.17 6 06/16/2026
9.0.16 10 05/26/2026
9.0.15 13 04/16/2026
9.0.14 17 03/15/2026
9.0.13 15 02/12/2026
9.0.12 18 01/18/2026
9.0.11 25 11/19/2025
9.0.10 22 10/22/2025
9.0.9 23 09/16/2025
9.0.8 31 08/10/2025
9.0.7 26 07/16/2025
9.0.6 26 06/27/2025
9.0.5 19 05/14/2025
9.0.4 38 06/06/2025
9.0.3 23 03/20/2025
9.0.2 36 02/21/2025
9.0.1 25 01/18/2025
9.0.0 30 01/18/2025
9.0.0-rc.2.24473.5 27 01/18/2025
9.0.0-rc.1.24431.7 18 10/05/2024
9.0.0-preview.7.24405.7 29 03/06/2025
9.0.0-preview.6.24327.7 26 12/22/2024
9.0.0-preview.5.24306.7 28 10/05/2024
9.0.0-preview.4.24266.19 28 02/01/2025
9.0.0-preview.3.24172.9 24 05/03/2025
9.0.0-preview.2.24128.5 25 04/14/2025
9.0.0-preview.1.24080.9 26 02/15/2024
8.0.1 36 01/18/2025
8.0.0 33 11/15/2023
8.0.0-rc.2.23479.6 28 03/04/2024
8.0.0-rc.1.23419.4 23 03/18/2024
8.0.0-preview.7.23375.6 18 03/09/2024
8.0.0-preview.6.23329.7 19 03/02/2024
8.0.0-preview.5.23280.8 22 03/04/2025
8.0.0-preview.4.23259.5 30 03/10/2024
8.0.0-preview.3.23174.8 36 10/05/2024
8.0.0-preview.2.23128.3 27 02/16/2025
8.0.0-preview.1.23110.8 19 10/05/2024
7.0.1 66 08/18/2023
7.0.0 182 08/18/2023
7.0.0-rc.2.22472.3 24 03/09/2024
7.0.0-rc.1.22426.10 30 03/09/2024
7.0.0-preview.7.22375.6 35 03/09/2024
7.0.0-preview.6.22324.4 24 03/09/2024
7.0.0-preview.5.22301.12 27 03/10/2024
7.0.0-preview.4.22229.4 30 02/16/2025
7.0.0-preview.3.22175.4 31 03/09/2024
7.0.0-preview.2.22152.2 25 03/02/2024
7.0.0-preview.1.22076.8 27 03/09/2024
6.0.2-mauipre.1.22102.15 23 03/18/2024
6.0.1 44 08/18/2023
6.0.0 27 08/18/2023
6.0.0-rc.2.21480.5 28 03/19/2024
6.0.0-rc.1.21451.13 26 03/19/2024
6.0.0-preview.7.21377.19 29 03/09/2024
6.0.0-preview.6.21352.12 28 03/14/2024
6.0.0-preview.5.21301.5 32 03/04/2024
6.0.0-preview.4.21253.7 24 03/03/2024
6.0.0-preview.3.21201.4 27 03/02/2024
6.0.0-preview.2.21154.6 25 04/08/2025
6.0.0-preview.1.21102.12 19 03/09/2024
5.0.0 36 03/06/2024
5.0.0-rc.2.20475.5 27 03/18/2024
5.0.0-rc.1.20451.14 26 03/18/2024
5.0.0-preview.8.20407.11 31 03/02/2024
5.0.0-preview.7.20364.11 23 03/02/2024
5.0.0-preview.6.20305.6 24 03/02/2024
5.0.0-preview.5.20278.1 24 03/10/2024
5.0.0-preview.4.20251.6 20 03/10/2024
5.0.0-preview.3.20215.2 28 03/02/2024
5.0.0-preview.2.20160.3 24 03/10/2024
5.0.0-preview.1.20120.4 30 03/10/2024
3.1.32 30 03/16/2024
3.1.31 29 11/15/2023
3.1.30 22 03/03/2024
3.1.29 31 03/19/2024
3.1.28 26 03/22/2024
3.1.27 23 03/05/2024
3.1.26 24 03/16/2024
3.1.25 21 03/20/2024
3.1.24 30 03/16/2024
3.1.23 38 03/18/2024
3.1.22 24 03/17/2024
3.1.21 24 03/22/2024
3.1.20 26 03/17/2024
3.1.19 25 03/19/2024
3.1.18 22 03/06/2024
3.1.17 29 03/14/2024
3.1.16 27 03/19/2024
3.1.15 27 03/14/2024
3.1.14 29 03/14/2024
3.1.13 25 03/14/2024
3.1.12 31 03/13/2024
3.1.11 34 03/13/2024
3.1.10 28 03/14/2024
3.1.9 27 03/22/2024
3.1.8 38 03/06/2024
3.1.7 28 03/19/2024
3.1.6 36 03/03/2024
3.1.5 32 03/14/2024
3.1.4 32 03/03/2024
3.1.3 28 03/04/2024
3.1.2 34 03/14/2024
3.1.1 29 03/17/2024
3.1.0 29 03/04/2024
3.1.0-preview3.19553.2 26 03/04/2024
3.1.0-preview2.19525.4 18 03/04/2024
3.1.0-preview1.19506.1 31 03/03/2024
3.0.3 26 03/14/2024
3.0.2 31 03/13/2024
3.0.1 34 03/03/2024
3.0.0 35 03/06/2024
3.0.0-rc1.19456.10 25 03/02/2024
3.0.0-preview9.19423.4 32 03/05/2024
3.0.0-preview8.19405.4 23 03/11/2024
3.0.0-preview7.19362.4 17 03/05/2024
3.0.0-preview6.19304.6 28 03/02/2024
3.0.0-preview5.19227.9 21 03/10/2024
3.0.0-preview4.19216.2 20 03/04/2024
3.0.0-preview3.19153.1 25 03/03/2024
3.0.0-preview.19074.2 28 03/02/2024
3.0.0-preview.18572.1 23 03/09/2024
2.2.0 34 03/04/2024
2.2.0-preview3-35497 30 03/04/2024
2.2.0-preview2-35157 27 03/02/2024
2.2.0-preview1-35029 28 03/04/2024
2.1.1 36 01/08/2025
2.1.0 34 03/04/2024
2.1.0-rc1-final 41 03/16/2024
2.1.0-preview2-final 23 03/09/2024
2.1.0-preview1-final 29 03/14/2024