You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using "nunit-console3" to run unit tests for .NET 8.0 assemblies that require the "Microsoft.AspNetCore.App" framework fails with the following error:
Results (nunit3) saved as TestResult.xml
PS C:\git\common> C:\Platform\nunit.console\net8.0\nunit3-console.exe C:/git/common/Source/Framework.Test/bin/x64/Debug/Framework.Test.dll
NUnit Console 3.17.0+685c5b542b5e9ba632c905f0bd514a773d9758af (Release)
Copyright (c) 2022 Charlie Poole, Rob Prouse
17 May 2024 23:56:17
Runtime Environment
OS Version: Microsoft Windows 10.0.22631
Runtime: .NET 8.0.5
Test Files
C:/git/common/Source/Framework.Test/bin/x64/Debug/Framework.Test.dll
Errors, Failures and Warnings
1) Invalid : C:/git/common/Source/Framework.Test/bin/x64/Debug/Framework.Test.dll
Unable to load one or more of the requested types.
Could not load file or assembly 'System.Configuration.ConfigurationManager, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.
----> Could not load file or assembly 'System.Configuration.ConfigurationManager, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.Microsoft.AspNetCore.App
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 dotnet test as this does not work when the solution contains C++/CLI vcxproj - which is something Microsoft seem reluctant to fix.
The text was updated successfully, but these errors were encountered:
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
dotnet test
as this does not work when the solution contains C++/CLI vcxproj - which is something Microsoft seem reluctant to fix.The text was updated successfully, but these errors were encountered: