Microsoft.AspNetCore.SystemWebAdapters 2.2.1

Prefix Reserved
dotnet add package Microsoft.AspNetCore.SystemWebAdapters --version 2.2.1
                    
NuGet\Install-Package Microsoft.AspNetCore.SystemWebAdapters -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" 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" Version="2.2.1" />
                    
Directory.Packages.props
<PackageReference Include="Microsoft.AspNetCore.SystemWebAdapters" />
                    
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 --version 2.2.1
                    
#r "nuget: Microsoft.AspNetCore.SystemWebAdapters, 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@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&version=2.2.1
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.AspNetCore.SystemWebAdapters&version=2.2.1
                    
Install as a Cake Tool

Microsoft.AspNetCore.SystemWebAdapters

Provides System.Web compatibility APIs for ASP.NET Core applications, enabling incremental migration from ASP.NET Framework. Use familiar types like HttpContext, HttpRequest, HttpResponse, and more in your ASP.NET Core apps and .NET Standard libraries.

Getting Started

Configure in your ASP.NET Core Program.cs:

var builder = WebApplication.CreateBuilder(args);

builder.Services.AddSystemWebAdapters();

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

Usage

Use System.Web types in your ASP.NET Core application:

using System.Web;

var context = HttpContext.Current;
var userAgent = context.Request.UserAgent;
var ipAddress = context.Request.UserHostAddress;

// Access session and cache
context.Session?["Key"] = "Value";
context.Cache["CacheKey"] = "CacheValue";

Supported APIs: HttpContext, HttpRequest, HttpResponse, HttpSessionState, Cache, HttpServerUtility, IHttpHandler, IHttpModule, and more.

Additional Documentation

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 is compatible.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (35)

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

Package Downloads
Microsoft.AspNetCore.SystemWebAdapters.Abstractions

A collection of abstractions to provide support for enabling configuration for Microsoft.AspNetCore.SystemWebAdapters.

Microsoft.AspNetCore.SystemWebAdapters.CoreServices

A collection of services to provide support for enabling configuration for Microsoft.AspNetCore.SystemWebAdapters.

Microsoft.AspNetCore.SystemWebAdapters.FrameworkServices

A collection of services for ASP.NET application to incorporate Microsoft.AspNetCore.SystemWebAdapters.

Acrolinx.Sidebar

Acrolinx .NET SDK for Sidebar Integration

Microsoft.AspNetCore.SystemWebAdapters.SessionState

A collection of services to provide session support for the System.Web adapters.

GitHub repositories (6)

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

Repository Stars
aduskin/AduSkin
A Beautiful WPF Control UI
ModuleArt/quick-picture-viewer
🖼️ Lightweight, versatile desktop image viewer for Windows. The best replacement for the default Windows photo viewer.
uholeschak/ediabaslib
.NET BMW and VAG Ediabas interpreter library
majorsilence/My-FyiReporting
Majorsilence Reporting, .NET report designer, viewer, and pdf creation.
msartore/ATA-GUI
ATA GUI is a project to make ATA available to all the users. ATA is an Advance Tool for Android™ powered by SDK Platform Tools.
CoreWebForms/CoreWebForms
Version Downloads Last Updated
2.2.1 2,590 12/18/2025
2.2.0 7,930 12/10/2025
2.2.0-preview1.25568.2 1,161 11/19/2025
2.2.0-preview1.25554.5 835 11/5/2025
2.1.0 124,513 10/21/2025
2.0.0 1,490,943 2/5/2025
1.4.0 3,634,127 5/8/2024
1.3.2 1,080,691 1/26/2024
1.3.1 209,331 1/11/2024
1.3.0 2,525,453 11/15/2023
1.2.0 518,563 6/29/2023
1.2.0-preview.1.23219.1 1,121 4/26/2023
1.1.0 1,477,531 3/16/2023
1.0.0 318,958 11/22/2022
1.0.0-rc.1.22477.1 52,005 9/28/2022
1.0.0-preview.3.22370.2 70,662 7/21/2022
1.0.0-preview.2.22316.1 12,898 6/17/2022
1.0.0-preview.1.22267.1 5,682 5/20/2022