net10.0
namespace Microsoft.AspNetCore.TestHost
{
    public class TestServer : IServer, IDisposable
    {
        [Obsolete("IWebHost, which this method uses, is obsolete. Use one of the ctors that takes an IServiceProvider instead. For more information, visit https://aka.ms/aspnet/deprecate/008.", DiagnosticId = "ASPDEPR008", UrlFormat = "https://aka.ms/aspnet/deprecate/008")]
        public TestServer(IWebHostBuilder! builder);
    }
}
nuget.org
0.0 %
Reference this API
.NET
10.0
Information specific to net10.0
Assembly

Microsoft.AspNetCore.TestHost , Version=10.0.1.0, PublicKeyToken=adb9793829ddae60

Referencing

Your project needs a package reference to Microsoft.AspNetCore.TestHost.

Package Microsoft.AspNetCore.TestHost (10.0.1) net10.0
Obsolete ASPDEPR008: IWebHost, which this method uses, is obsolete. Use one of the ctors that takes an IServiceProvider instead. For more information, visit https://aka.ms/aspnet/deprecate/008.
Platform Restrictions

This API is supported on all platforms.

  • Built-in API
  • Package-provided API