IDistributedApplicationTestingBuilder API changes

In .NET Aspire 9.1, IDistributedApplicationTestingBuilder was changed to inherit from IDistributedApplicationBuilder, IAsyncDisposable, and IDisposable. This change affects binary compatibility and requires recompilation of existing binaries.

Version introduced

.NET Aspire 9.1

Previous behavior

Previously, IDistributedApplicationTestingBuilder inherited from nothing.

New behavior

IDistributedApplicationTestingBuilder now inherits from IDistributedApplicationBuilder, IAsyncDisposable, and IDisposable.

Type of breaking change

This change is a binary incompatible change.

Reason for change

Methods accepting a parameter of type IDistributedApplicationBuilder now work with IDistributedApplicationTestingBuilder, giving developers a consistent API surface.

Recompile your code if necessary. If you're implementing IDistributedApplicationTestingBuilder yourself (which would be highly unusual), then you need to implement the new interfaces also.

Affected APIs

  • IDistributedApplicationTestingBuilder