Aspire.Microsoft.AspNetCore.SystemWebAdapters 2.2.1-preview.1.25618.2

Prefix Reserved
This is a prerelease version of Aspire.Microsoft.AspNetCore.SystemWebAdapters.
dotnet add package Aspire.Microsoft.AspNetCore.SystemWebAdapters --version 2.2.1-preview.1.25618.2
                    
NuGet\Install-Package Aspire.Microsoft.AspNetCore.SystemWebAdapters -Version 2.2.1-preview.1.25618.2
                    
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="Aspire.Microsoft.AspNetCore.SystemWebAdapters" Version="2.2.1-preview.1.25618.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Aspire.Microsoft.AspNetCore.SystemWebAdapters" Version="2.2.1-preview.1.25618.2" />
                    
Directory.Packages.props
<PackageReference Include="Aspire.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 Aspire.Microsoft.AspNetCore.SystemWebAdapters --version 2.2.1-preview.1.25618.2
                    
#r "nuget: Aspire.Microsoft.AspNetCore.SystemWebAdapters, 2.2.1-preview.1.25618.2"
                    
#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 Aspire.Microsoft.AspNetCore.SystemWebAdapters@2.2.1-preview.1.25618.2
                    
#: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=Aspire.Microsoft.AspNetCore.SystemWebAdapters&version=2.2.1-preview.1.25618.2&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Aspire.Microsoft.AspNetCore.SystemWebAdapters&version=2.2.1-preview.1.25618.2&prerelease
                    
Install as a Cake Tool

Aspire.Microsoft.AspNetCore.SystemWebAdapters

Provides .NET Aspire integration for System Web Adapters, automatically configuring settings based on Aspire-provided environment variables.

Getting Started

In your Aspire app host:

var builder = DistributedApplication.CreateBuilder(args);

var frameworkApp = builder.AddIISExpressProject<Projects.MyFrameworkApp>("framework");

var coreApp = builder.AddProject<Projects.MyCoreApp>("core")
    .WithIncrementalMigrationFallback(frameworkApp, options =>
    {
        options.RemoteSession = RemoteSession.Enabled;
        options.RemoteAuthentication = RemoteAuthentication.DefaultScheme;
    });

builder.Build().Run();

In your ASP.NET Core app:

// Automatically configured from Aspire environment
builder.AddSystemWebAdapters();

In your ASP.NET Framework app (Global.asax.cs):

protected void Application_Start()
{
    HttpApplicationHost.RegisterHost(builder =>
    {
        builder.AddSystemWebAdapters(); // Auto-configured
    });
}

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. 
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
2.2.1-preview.1.25618.2 220 12/18/2025
2.2.0-preview.1.25610.2 368 12/10/2025
2.2.0-preview.1.25568.2 358 11/19/2025
2.2.0-preview.1.25554.5 141 11/5/2025
2.1.0-preview.1.25515.2 128 10/21/2025