Microsoft.AspNetCore.SystemWebAdapters.CoreServices 2.2.1

Prefix Reserved
dotnet add package Microsoft.AspNetCore.SystemWebAdapters.CoreServices --version 2.2.1
                    
NuGet\Install-Package Microsoft.AspNetCore.SystemWebAdapters.CoreServices -Version 2.2.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Microsoft.AspNetCore.SystemWebAdapters.CoreServices" Version="2.2.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microsoft.AspNetCore.SystemWebAdapters.CoreServices" Version="2.2.1" />
                    
Directory.Packages.props
<PackageReference Include="Microsoft.AspNetCore.SystemWebAdapters.CoreServices" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Microsoft.AspNetCore.SystemWebAdapters.CoreServices --version 2.2.1
                    
#r "nuget: Microsoft.AspNetCore.SystemWebAdapters.CoreServices, 2.2.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Microsoft.AspNetCore.SystemWebAdapters.CoreServices@2.2.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Microsoft.AspNetCore.SystemWebAdapters.CoreServices&version=2.2.1
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.AspNetCore.SystemWebAdapters.CoreServices&version=2.2.1
                    
Install as a Cake Tool

Microsoft.AspNetCore.SystemWebAdapters.CoreServices

Provides services and middleware for using System Web Adapters in ASP.NET Core applications. Includes session management, remote app integration, HTTP handlers/modules, and more.

Getting Started

var builder = WebApplication.CreateBuilder(args);

builder.Services.AddSystemWebAdapters();

var app = builder.Build();
app.UseRouting();
app.UseSystemWebAdapters();
app.Run();

Usage

Session State

Local session (backed by ASP.NET Core):

builder.Services.AddSystemWebAdapters()
    .AddWrappedAspNetCoreSession();

builder.Services.AddDistributedMemoryCache();
builder.Services.AddSession();

Remote session (shared with ASP.NET Framework):

builder.Services.AddSystemWebAdapters()
    .AddRemoteAppClient(options =>
    {
        options.RemoteAppUrl = new Uri("https://framework-app.example.com");
        options.ApiKey = "your-api-key";
    })
    .AddSessionClient();

HTTP Handlers

app.MapHttpHandler<MyCustomHandler>("/handler.ashx");

public class MyCustomHandler : IHttpHandler
{
    public bool IsReusable => true;
    
    public void ProcessRequest(System.Web.HttpContext context)
    {
        context.Response.Write("Hello from IHttpHandler!");
    }
}

HTTP Modules

builder.Services.AddSystemWebAdapters()
    .AddHttpModules(modules => modules.Add<MyCustomModule>());

Additional Documentation

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (10)

Showing the top 5 NuGet packages that depend on Microsoft.AspNetCore.SystemWebAdapters.CoreServices:

Package Downloads
JsModels.Net

Javascript model building for .NET apps

MasonChase.CoreWebForms.HttpHandler

Package Description

Aspire.Microsoft.AspNetCore.SystemWebAdapters

Package Description

Microsoft.AspNetCore.SystemWebAdapters.Owin

Package Description

MasonChase.CoreWebForms.VirtualFile

Package Description

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on Microsoft.AspNetCore.SystemWebAdapters.CoreServices:

Repository Stars
dotnet/AspNetCore.Docs
Documentation for ASP.NET Core
CoreWebForms/CoreWebForms
Version Downloads Last Updated
2.2.1 1,320 12/18/2025
2.2.0 3,046 12/10/2025
2.2.0-preview1.25568.2 534 11/19/2025
2.2.0-preview1.25554.5 450 11/5/2025
2.1.0 33,903 10/21/2025
2.0.0 341,407 2/5/2025
1.4.0 608,135 5/8/2024
1.3.2 192,223 1/26/2024
1.3.1 26,971 1/11/2024
1.3.0 751,748 11/15/2023
1.2.0 172,398 6/29/2023
1.2.0-preview.1.23219.1 975 4/26/2023
1.1.0 258,136 3/16/2023
1.0.0 100,502 11/22/2022
1.0.0-rc.1.22477.1 44,294 9/28/2022