-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nunit3-console doesn't see nugets from Microsoft.AspNetCore.App #1392
Comments
Hi! We do have issues with this kind of loading behavior, and we do have multiple attempts at finding the reason. We do have multiple similar errors in the console repo, see https://github.com/nunit/nunit-console/issues I'll move this issue over to that repo. You can have a look at #1383 which is a similar reported issue. See this comment:
If you use the latest test.sdk, you should also get the runtimeconfig.json correct, and then you should get the same error as I have above. See the repro for details. The failure with loading Microsoft.Extensions.Logging.Abstractions is a bit weird. It is a framework reference, and you see it in the dependencies list in Visual Studio, but the console runner doesn't find it. We have to dig a bit deeper to see what this can be. Is there a reason you can't use |
Using "nunit-console3" to run unit tests for .NET 8.0 assemblies that require the "Microsoft.AspNetCore.App" framework fails with the following error:
The workaround was to change the nunit3-comsole.runtimeconfig.json in the net8.0 folder to:
I would rather not have to modify the distribution of nunit3-console to make this work if possible, is there another solution I have missed for this? As an aside, I am unable to use |
I have the following project and test
I can run fine this project from Visual Studio but then I run it from command line with
nunit3-console nunittests.dll
I see the following errorIf I use
Assembly.LoadFrom
with the full path it is able to load the DLL.The text was updated successfully, but these errors were encountered: