mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 22:30:41 +01:00
WebHostBuilder.ConfigureServices method not found when using nunit3testadapter 4.4.0 #494
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @iamzhaoxu on GitHub (Feb 27, 2023).
Describe the bug
I try to update the WireMock.Net to 1.5.17 and the nunit3testadapter to 4.4.0 in the test project and I got an exception when starting the wiremock as below
After I downgrade the nunit3testadapter 4.4.0 back to 4.3.1 then the same test worked again. I am not sure this is issue from WireMock and Nunit3TestAdpter and thereby I raised this issue in both projects.
I heard that WebHostBuilder was depreciated https://github.com/dotnet/aspnetcore/issues/20964 before but I still can see the .NET 7 still try to support it from https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.hosting.webhostbuilder.-ctor?view=aspnetcore-7.0.
Expected behaviour:
I will expect the latest of WireMock.Net should work with the latest nunit3testadapter
Test to reproduce
@iamzhaoxu commented on GitHub (Feb 27, 2023):
I figure out this is related to the conflict caused by nunit3testadapter 4.4.0 and Microsoft.Extensions.Hosting 7.0.1 and closed this ticket. thanks!