mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 22:30:41 +01:00
Could not load file or assembly 'Microsoft.Extensions.DependencyInjection.Abstractions' for .NET 6 #476
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 @bouchraRekhadda on GitHub (Dec 19, 2022).
Originally assigned to: @StefH on GitHub.
Starting from
1.3.1version,WireMockServer.Start()starts to throw below exception when tests are run withNUnit.ConsoleRunner3.15.2Test to reproduce
1- Create a unit test project
With Test class
And
global.jsondotnet build"C:\Users\br123\.nuget\packages\nunit.consolerunner\3.15.2\tools\nunit3-console.exe" bin\AnyCPUDebug\net6.0\WireMockSample.dll<!-- path to compiled project --!>Expected behavior
Actual
Additional info
I am not sure if this should be reported on this repository or in nunit-console, but since this a regression following
WireMock.Netupgrade I choose to repot it here.If you need further info, I'll be glad to share it with you.
@StefH commented on GitHub (Dec 19, 2022):
@bouchraRekhadda
How to install
NUnit.ConsoleRunnerin a easy way ?@bouchraRekhadda commented on GitHub (Dec 20, 2022):
@StefH , I don't know any other simpler way than adding it as a dependency to a project and restore it
@StefH commented on GitHub (Dec 20, 2022):
OK, I thought this was also a dotnet tool.
I'll try this and check if it throws the same exception.
@StefH commented on GitHub (Mar 10, 2023):
https://github.com/nunit/nunit3-vs-adapter.issues/blob/master/Issue1065/wiremocktests/UnitTest1.cs
@StefH commented on GitHub (Mar 10, 2023):
https://github.com/nunit/nunit3-vs-adapter/issues/1065
@StefH commented on GitHub (Mar 10, 2023):
@bouchraRekhadda
According to nunit, this is solved in 4.4.2
@bouchraRekhadda commented on GitHub (Mar 10, 2023):
@StefH that's good to hear. Thank you for reporting back 🙌