-
Notifications
You must be signed in to change notification settings - Fork 106
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
.Net Framework tests fails when .Net 8 is present on system #1049
Comments
Hi! It is correct that the engine does not support .net 8. That should be fixed with engine version 3.16.2, which is out now. It should not be invoked when targeting net 7, as you do, but when it has been installed, it is picked up by the engine and throws the exception you see above. So it doesn't try to run with net 8. The suppression with global.json has unfortunately no effect either, since the engine enumerates the sdk's. I'll try to get a fix out asap. In the meantime, you'll have to uninstall the net 8. But thanks a lot for raising this issue! |
@OsirisTerje is there a timeline for this? |
We need a release for the engine first, so i am pushing for that. When that's done, the adapter comes the day after. |
This should be fixed once we release an update using the latest version of the NUnit engine. |
@tkvalvik @madelson Version 4.4.0-beta.1 is out now https://www.nuget.org/packages/NUnit3TestAdapter/4.4.0-beta.1 . It includes support for .net 8. Appreciate it if you have the time to verify it works as it should. |
Ran the test suites on a mixed .Net 7 and .Net Framework 4.7.2-project. "Works on my machine" |
So, strangely, this works for me with 4.4.0-beta.1, but errors with 4.5.0. |
@timcassell You can a) Add it as a PR to https://github.com/nunit/nunit3-vs-adapter.issues, add it as a separate folder named IssueXXX where the XXX is the issue number, or b) Add it as a zipped attachment here , or c) Add it to your own repo and just post the link. Make it as small as you can, it should compile "as is". |
Well, I'm not able to repro anymore. I uninstalled the .Net 8 version I had on my machine (I think it was preview 6). I installed it again to try to repro again, but it stopped erroring (both with preview 6 and the latest RC2). |
Updating our |
CI error similar to nunit/nunit3-vs-adapter#1049
…ections corrected (#372) * github actions yaml files vulnerable to script injections corrected * build: update NUnit.Console to 3.18.2 CI error similar to nunit/nunit3-vs-adapter#1049 * chore: downgrade to NUnit.Console 3.18.1 v3.18.2 introduced an incompatibility --------- Co-authored-by: Mike Chu <[email protected]>
I have a project that targets both .Net 7 and .Net Framework 4.7.2.
I installed the .Net 8 alpha for an unrelated purpose, and unit tests for .Net Framework will no longer run.
Using:
NUnit 3.13.3
NUnit3TestAdapter 4.3.1
.Net 7.0.102 and .Net Framework 4.7.2
Projects global.json:
Installed SDKs
Requested version is correctly used
NUnit to run with .Net 8 anyway?
Expectation: Tests run with the sdk and runtime defined by the project, regardless of which unrelated sdks might be present on the system.
The text was updated successfully, but these errors were encountered: