-
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
NetStandard Null ReferenceExcpetion #277
Comments
You encountered a bug that is hiding a bigger bug! The VS Project Loader extension for the NUnit Engine does not support the format of .NET Core projects. A PR to fix this is in review right now: nunit/vs-project-loader#12 However, once this is merged and in use, you would run into the more fundamental error, which is that the engine itself does not support .NET Core assemblies. :-( That too is being worked on. |
I agree it's confusing. As indicated, there is now a ".NET Standard version of the engine". It's not the full engine used by the console runner and is only designed for use by the vs adapter and similar programs. The console runner will support various implementations of .NET Standard, including .NET Core but right now it only runs tests for .NET (desktop) 2.0 and higher. Supporting the .csproj format merely allows us to find out the name of the dll that is to be run. It's a small step but an important one. |
Okey but I'm targeting output to net461. We got extension "Nunit3 Test Adapter" installed v. 3.8.0.0 |
Misunderstanding then. You posted this as a console issue, so I wasn't thinking about the adapter. Which NUnit framework build are you referencing? Which runtime target? (Should be .NET 4.5) |
@przemo098 are you using the new CSPROJ format? If so, have you also added a reference to |
Closing as this needs more information to be able to solve. Happy to reopen if we can help. |
Hello
I tried to run Nunit3 console at your test project
But I got this outPut:
I got clean installation with Visual Studio 2017.
Issue started with adapter which were not working... (but Resharper can run tests...)
So I used your nunit3-console. It's working for any project (normal .Net framework) but not for NetStandard or .Net core.
Maybe I'm doing something wrong...
I got Nunit3 package / console and nunit3 adapter.
But for project from nunit-console\src\NUnitEngine\nunit.engine.tests I got following outPut with errors :)
Any ideas ? :)
The text was updated successfully, but these errors were encountered: