-
Notifications
You must be signed in to change notification settings - Fork 152
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
v3.14 fails with target framework net461 ... net48 on linux (ArgumentException: The net-4.6.1 framework is not available.), but v3.12 works well #1130
Comments
3.14 fails and even 3.15 version of NUnit.ConsoleRunner is throwing the same error System.ArgumentException : The net-4.5.2 framework is not available. Available frameworks: mono-4.0 --ArgumentException The net-4.5.2 framework is not available. Available frameworks: mono-4.0 at NUnit.Engine.Services.TestAgency.GetAgent (NUnit.Engine.TestPackage package) [0x0008e] in <83a050af71a545d186bc8c62a15c3005>:0 at NUnit.Engine.Runners.ProcessRunner.CreateAgentAndRunnerIfNeeded () [0x0003d] in <83a050af71a545d186bc8c62a15c3005>:0 at NUnit.Engine.Runners.ProcessRunner.RunTests (NUnit.Engine.ITestEventListener listener, NUnit.Engine.TestFilter filter) [0x0001f] in <83a050af71a545d186bc8c62a15c3005>:0 Azure DevOps pipeline failing after updating NUnit.ConsoleRunner nuget package to to 3.15 version. Command use to run the nunit test: exec /Library/Frameworks/Mono.framework/Versions/Current/bin/mono --debug /Users/name/Documents/MyProject/packages/NUnit.ConsoleRunner.3.15.0/tools/nunit3-console.exe /Users/name/Documents/MyProject/TestProject.NUnitTest/bin/Release/TestProject.NUnitTest.dll Provided more details here Latest Nunit consoleRunner failing |
Yes, same issue here with 3.15 |
Removed from milestone so we can get the critical bug fixed. |
This issue has been resolved in version 3.16.0 The release is available on: |
Should fix the following error that occurred in the `csharp/netcore{2.2.103,3.0.100}-linux-x86_64` jobs when using `NUnit.ConsoleRunner 3.17.0` (https://github.com/kaitai-io/ci_artifacts/blob/d5a853489f3f1a75c72e6b8a34e505388938133b/test_out/csharp/test_run.stdout#L15-L23): ``` 1) Error : System.ArgumentException : The net-4.8 framework is not available. Available frameworks: mono-4.0 --ArgumentException The net-4.8 framework is not available. Available frameworks: mono-4.0 at NUnit.Engine.Services.TestAgency.GetAgent (NUnit.Engine.TestPackage package) [0x0008e] in <98a5d354480145bf8bc83cc74d63f414>:0 at NUnit.Engine.Runners.ProcessRunner.CreateAgentAndRunnerIfNeeded () [0x0003d] in <98a5d354480145bf8bc83cc74d63f414>:0 at NUnit.Engine.Runners.ProcessRunner.RunTests (NUnit.Engine.ITestEventListener listener, NUnit.Engine.TestFilter filter) [0x0001f] in <98a5d354480145bf8bc83cc74d63f414>:0 ``` See nunit/nunit-console#1130
Intro: We need nunit-console to test NET Standard Libraries on mono-only platforms such as armv6, Raspberry PI zero, etc. v3.12 did it well, but the latest v3.14 fails.
For v3.14 the output on a Linux for net4.6.1 test assembly is:
v3.12 works well.
How to reproduce:
nunit3-console is a shell-link:
mono /...path...to...nuget..package/packages/NUnit.ConsoleRunner/tools/nunit3-console.exe "$@"
mono and msbuild: the latest from official Xamarin repo, 6.12.0.122
OS Ubuntu 18.04 LTS (actually Linux version doesn't matter)
Below just references how to simplify reproduction step
Reset-Target-Framework scripts above resets Targetframwork[s] to specific version for csproj-files. here is it: https://github.com/devizer/test-and-build/blob/master/lab/permanent-scripts/Reset-Target-Framework.sh
v3.12 can be installed via snapshot.gz using shared script:
https://github.com/devizer/glist/blob/master/bin/net-test-runners.sh
The latest version of nunit-console can be installed via nuget using another shared script
https://github.com/devizer/test-and-build/blob/master/lab/NET-TEST-RUNNERS-build.sh
As of now, it installs v3.14
The text was updated successfully, but these errors were encountered: