Skip to main content
Microsoft.AspNetCore.Mvc.Testing package icon

Microsoft.AspNetCore.Mvc.Testing

Support for writing functional tests for MVC applications. This package was built from the source code at https://github.com/dotnet/dotnet/tree/75972a5ba730bdaf7cf3a34f528ab0f5c7f05183

Total Downloads
374.6M
374,569,109
Published
Jul 15, 2025
Latest stable version

Install

.NET CLI
dotnet add package Microsoft.AspNetCore.Mvc.Testing --version 10.0.0-preview.6.25358.103
Package Manager Console
Install-Package Microsoft.AspNetCore.Mvc.Testing -Version 10.0.0-preview.6.25358.103
PackageReference
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="10.0.0-preview.6.25358.103" />

Frameworks

net10.0

Dependencies

[10.0.0-preview.6.25358.103, )
[10.0.0-preview.6.25358.103, )
[10.0.0-preview.6.25358.103, )

Adoption guide

API and MVC apps that need realistic middleware, routing and dependency injection coverage without external process orchestration.

Integration Testing guide
Why it appears in the guide: Bootstraps ASP.NET Core applications in tests via TestServer/WebApplicationFactory for high-fidelity HTTP integration tests. Trade-off: External dependencies still need explicit test doubles or infrastructure provisioning to avoid false confidence.

This version is marked prerelease. Validate its API and upgrade path before production use.

Compatibility metadata lists 1 target framework; confirm the exact target used by your application.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.