@@ -80,7 +80,7 @@ public TestServer(IServiceProvider services, IFeatureCollection featureCollectio
8080 /// For use with IWebHostBuilder.
8181 /// </summary>
8282 /// <param name="builder"></param>
83- [ Obsolete ( "IWebHost, which this method uses, is obsolete. Use one of the ctors that takes an IServiceProvider instead." ) ]
83+ [ Obsolete ( "IWebHost, which this method uses, is obsolete. Use one of the ctors that takes an IServiceProvider instead." , DiagnosticId = "ASPDEPR008" ) ]
8484 public TestServer ( IWebHostBuilder builder )
8585 : this ( builder , CreateTestFeatureCollection ( ) )
8686 {
@@ -91,7 +91,7 @@ public TestServer(IWebHostBuilder builder)
9191 /// </summary>
9292 /// <param name="builder"></param>
9393 /// <param name="featureCollection"></param>
94- [ Obsolete ( "IWebHost, which this method uses, is obsolete. Use one of the ctors that takes an IServiceProvider instead." ) ]
94+ [ Obsolete ( "IWebHost, which this method uses, is obsolete. Use one of the ctors that takes an IServiceProvider instead." , DiagnosticId = "ASPDEPR008" ) ]
9595 public TestServer ( IWebHostBuilder builder , IFeatureCollection featureCollection )
9696 {
9797 ArgumentNullException . ThrowIfNull ( builder ) ;
@@ -113,7 +113,7 @@ public TestServer(IWebHostBuilder builder, IFeatureCollection featureCollection)
113113 /// <summary>
114114 /// Gets the <see cref="IWebHost" /> instance associated with the test server.
115115 /// </summary>
116- [ Obsolete ( "IWebHost is obsolete. Use IHost instead." ) ]
116+ [ Obsolete ( "IWebHost is obsolete. Use IHost instead." , DiagnosticId = "ASPDEPR008" ) ]
117117 public IWebHost Host
118118 {
119119 get
0 commit comments