Skip to main content
.NETFramework4.7.2net8.0net9.0net10.0

Package Description

Published
Dec 10, 2025
10mo ago
Total Downloads
2.5K
2,483

Install

dotnet add package Aspire.Microsoft.AspNetCore.SystemWebAdapters --version 2.2.0-preview.1.25610.2
ProductVersions
.NET
net10.0net8.0net9.0
Other
.NETFramework4.7.2

README

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

Changes from Previous Version

No structural changes between v2.2.0-preview.1.25568.2 and v2.2.0-preview.1.25610.2.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

This version is marked prerelease. Validate its API and upgrade path before production use.Compatibility metadata lists 4 target frameworks; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.