---
title: "alba 9.0.0 Breaking Changes on NuGet | Since.dev"
description: "What each alba release removed, renamed or changed: 32 breaking changes in 1 version on NuGet, each with its source."
canonical_url: https://since.dev/packages/nuget/alba
last_updated: 2026-12-04
---

# alba breaking changes

alba 9.0.0 (November 11, 2026) is its newest release with breaking changes, 32 of them. The first: Alba 9.0.0 drops support for .NET 8 and 9. Every breaking API change we have recorded in alba on NuGet: 32 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `9.0.0`, released November 11, 2026. [Source repository](https://github.com/JasperFx/alba)

Its 9.0.0 release drops .NET 8 and [9](https://since.dev/calendar/dotnet/9.md). [.NET end of life dates](https://since.dev/calendar/dotnet.md).

## alba 9.0.0 breaking changes

alba 9.0.0, released November 11, 2026: 32 breaking changes.

- **Removed**  

Alba now targets net10.0 and net11.0; applications under test must run on .NET 10 or later. [github.com](https://github.com/JasperFx/alba/releases/tag/v9.0.0)
- **Removed** `Alba.AlbaHostExtensions.StartAlba`  

Use StartAlbaAsync and await it instead. [nuget.org](https://www.nuget.org/packages/Alba/9.0.0)
- **Removed** `Alba.ConfigurationOverride`  

Configuration values are now overridden on the builder with WithConfiguration. [nuget.org](https://www.nuget.org/packages/Alba/9.0.0)
- **Removed** `Alba.HttpContextExtensions.Write`  

Use ASP.NET Core's HttpResponse.WriteAsync instead. [nuget.org](https://www.nuget.org/packages/Alba/9.0.0)
- **Removed** `Alba.ScenarioExpectationsExtensions.StatusCodeShouldBeSuccess`  

It moved from an extension method to an instance method on Scenario and no longer registers an assertion. [nuget.org](https://www.nuget.org/packages/Alba/9.0.0)
- **Removed** `Alba.Security.AuthenticationExtensionBase.defaultClaims`  

Alba.Security.AuthenticationExtensionBase.defaultClaims was removed in Alba 9.0.0 [nuget.org](https://www.nuget.org/packages/Alba/9.0.0)
- **Removed** `Alba.Serialization.FormatterSerializer.Write`  

Alba.Serialization.FormatterSerializer.Write was removed in Alba 9.0.0 [nuget.org](https://www.nuget.org/packages/Alba/9.0.0)
- **Removed** `Alba.Serialization.IJsonStrategy.Write`  

Custom IJsonStrategy implementations must implement WriteAsync returning Task\<Stream>. [nuget.org](https://www.nuget.org/packages/Alba/9.0.0)
- **Removed** `Alba.Serialization.SystemTextJsonSerializer.Write`  

Alba.Serialization.SystemTextJsonSerializer.Write was removed in Alba 9.0.0 [nuget.org](https://www.nuget.org/packages/Alba/9.0.0)
- **Removed** `new AlbaHost`  

Bootstrapping is now asynchronous only. Use AlbaHost.For or StartAlbaAsync with await. [github.com](https://github.com/JasperFx/alba/releases/tag/v9.0.0)
- **Renamed** `Alba.AlbaJsonFormatterException`  

Add using Alba.Exceptions to code that catches or asserts on these exceptions. [nuget.org](https://www.nuget.org/packages/Alba/9.0.0)
- **Renamed** `Alba.EmptyResponseException`  

Add using Alba.Exceptions to code that catches or asserts on these exceptions. [nuget.org](https://www.nuget.org/packages/Alba/9.0.0)
- **Renamed** `Alba.ScenarioAssertionException`  

Add using Alba.Exceptions to code that catches or asserts on these exceptions. [nuget.org](https://www.nuget.org/packages/Alba/9.0.0)
- **Renamed** `IdentityModel`  

Token and discovery types now come from Duende.IdentityModel.Client; update using directives. [github.com](https://github.com/JasperFx/alba/releases/tag/v9.0.0)
- **Behavior changed**  

Overrides now beat appsettings.json and other application sources on the IHostBuilder path. [github.com](https://github.com/JasperFx/alba/releases/tag/v9.0.0)
- **Behavior changed**  

AsyncLocal values set by the test are no longer visible in configuration actions; capture them before starting the host. [github.com](https://github.com/JasperFx/alba/releases/tag/v9.0.0)
- **Behavior changed** `AlbaHost.For`  

Code storing the result as Task\<IAlbaHost> or passing it as Func\<Task> must call StartAsync explicitly. [github.com](https://github.com/JasperFx/alba/releases/tag/v9.0.0)
- **Behavior changed** `AlbaHost.For<T>`  

Startup-style applications fail through AlbaHost.For\<T> on .NET 11; bootstrap them via their IHostBuilder instead. [github.com](https://github.com/JasperFx/alba/releases/tag/v9.0.0)
- **Behavior changed** `AllowSynchronousIO`  

Alba no longer sets AllowSynchronousIO on the TestServer; opt in after starting the host if needed. [github.com](https://github.com/JasperFx/alba/releases/tag/v9.0.0)
- **Behavior changed** `IAlbaHost.BeforeEachAsync`  

The hook now takes a Scenario instead of HttpContext and is awaited before the request. Async actions run before sync BeforeEach actions. [github.com](https://github.com/JasperFx/alba/releases/tag/v9.0.0)
- **Behavior changed** `IAlbaHost.Dispose`  

Dispose now waits for complete teardown, equivalent to awaiting DisposeAsync. [github.com](https://github.com/JasperFx/alba/releases/tag/v9.0.0)
- **Behavior changed** `IAlbaHost.DisposeAsync`  

Framework System.Text.Json or Newtonsoft formatters are preferred regardless of registration order; custom formatters registered first no longer win. [github.com](https://github.com/JasperFx/alba/releases/tag/v9.0.0)
- **Behavior changed** `IScenarioResult.ReadAsXml`  

Bodies merely containing the text Error are now parsed as XML instead of returning null. [github.com](https://github.com/JasperFx/alba/releases/tag/v9.0.0)
- **Behavior changed** `Scenario.StatusCodeShouldBeSuccess`  

Scenarios without a status expectation pass for any 2xx code; use StatusCodeShouldBeOk for exact 200. [github.com](https://github.com/JasperFx/alba/releases/tag/v9.0.0)
- **Signature changed** `Alba.AlbaHost.BeforeEachAsync`  

Was Alba.IAlbaHost BeforeEachAsync(System.Func\<Microsoft.AspNetCore.Http.HttpContext, System.Threading.Tasks.Task> beforeEach); now Alba.IAlbaHost BeforeEachAsync(System.Func\<Alba.Scenario, System.Threading.Tasks.Task> beforeEach). [nuget.org](https://www.nuget.org/packages/Alba/9.0.0)
- **Signature changed** `Alba.AlbaHost.For`  

The overload that implicitly created a default host builder is gone. Build the IHostBuilder explicitly and pass it to AlbaHost.For. [nuget.org](https://www.nuget.org/packages/Alba/9.0.0)
- **Signature changed** `Alba.AlbaHostExtensions.StartAlbaAsync`  

Was static System.Threading.Tasks.Task\<Alba.IAlbaHost> StartAlbaAsync(Microsoft.AspNetCore.Builder.WebApplicationBuilder builder, System.Action\<Microsoft.AspNetCore.Builder.WebApplication> configureRoutes, Alba.IAlbaExtension\[\] extensions)... [nuget.org](https://www.nuget.org/packages/Alba/9.0.0)
- **Signature changed** `Alba.IAlbaExtension.Configure`  

Configure now takes IAlbaHostBuilder and returns void instead of returning IHostBuilder. [nuget.org](https://www.nuget.org/packages/Alba/9.0.0)
- **Signature changed** `Alba.IAlbaHost.BeforeEachAsync`  

Was Alba.IAlbaHost BeforeEachAsync(System.Func\<Microsoft.AspNetCore.Http.HttpContext, System.Threading.Tasks.Task> beforeEach); now Alba.IAlbaHost BeforeEachAsync(System.Func\<Alba.Scenario, System.Threading.Tasks.Task> beforeEach). [nuget.org](https://www.nuget.org/packages/Alba/9.0.0)
- **Signature changed** `Alba.Security.OpenConnectClientCredentials.FetchToken`  

Was System.Threading.Tasks.Task\<IdentityModel.Client.TokenResponse> FetchToken(object tokenCustomization) virtual System.Threading.Tasks.Task\<IdentityModel.Client.TokenResponse> FetchToken(System.Net.Http.HttpClient client... [nuget.org](https://www.nuget.org/packages/Alba/9.0.0)
- **Signature changed** `Alba.Security.OpenConnectExtension.FetchToken`  

Was System.Threading.Tasks.Task\<IdentityModel.Client.TokenResponse> FetchToken(object tokenCustomization) abstract System.Threading.Tasks.Task\<IdentityModel.Client.TokenResponse> FetchToken(System.Net.Http.HttpClient client... [nuget.org](https://www.nuget.org/packages/Alba/9.0.0)
- **Signature changed** `Alba.Security.OpenConnectUserPassword.FetchToken`  

Was System.Threading.Tasks.Task\<IdentityModel.Client.TokenResponse> FetchToken(object tokenCustomization) virtual System.Threading.Tasks.Task\<IdentityModel.Client.TokenResponse> FetchToken(System.Net.Http.HttpClient client... [nuget.org](https://www.nuget.org/packages/Alba/9.0.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
