ConfigureWebHost used with WebApplicationBuilder.Host (ASP0008)
Anahtar dotnet.api.configurewebhost-on-builder-host · Önem error · Kategori api
ASP.NET Core analizörü ASP0008. WebApplicationBuilder.Host üzerinde çağrılan ve açılışta hata fırlatan ConfigureWebHost’u işaretler; desteklenen yol builder.WebHost’tur.
Yanlış
Bölüm başlığı “Yanlış”builder.Host.ConfigureWebHost(web => web.UseUrls("http://*:8080"));builder.WebHost.UseUrls("http://*:8080");