-
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
NUnit does not work without .NET Core #1277
Comments
@Prakson This would be a critical bug if confirmed. I'll may to set up a new machine to test this but I'll try just inspecting the code first. What runtimes were installed on the machine displaying this problem? |
OK... if I can't get a copy of that OS, I'll try one I have in a VM by itself. |
Try running this in process. We might get some additional trace info that way. |
@Prakson Looking at your exception stack trace, I see that the inner Win32Exception references RuntimeFramework methods, which no longer exist. As best I can tell, the go back to version 3.10 of the engine. Is something in your own code referencing an older version of the engine? |
As an experiment, I modified the code so that the engine doesn't find any .NET Core installs. It was still able to run .NET Framework tests without error. In combination with the apparent usage of an older version of the engine, this leads me to suspect that this isn't a current bug. I'll leave the issue open for the moment so we can try to figure out a solution for you. |
I reproduced the same issue outside of corporate network. I downloaded nunit-conolse attached in the latest release as zip archive (NUnit.Console-3.16.0.zip), unpacked it and started from powershell. "test" file does not exist. App had crashed before it touched it. So no references to older framework here.
I checked source code attached to the 3.16.0 release. It doesn't contain changes introduced in #1170. That's reason it calls RuntimeFramework methods. |
I see you're right. I must have been looking at main branch, which is where I'm building version 2.0, rather than version3 branch, which is what we're concerned about. I can see that the code doesn't assume any particular runtime is installed but does call |
@Prakson Give this build a try... https://ci.appveyor.com/project/CharliePoole/nunit-console/builds/45576209/artifacts |
Seems like fix works.
|
Great! I'll do a PR and merge it. Sorry for my initial confusion. |
@Prakson The merged fix (including other fixes) is available on our myget feed as version 3.6.1-dev00006. I'd appreciate it if you could try that one as well. |
This issue has been resolved in version 3.16.1 The release is available on: |
Since 3.16.0 NUnit.Console doesn't start without "dotnet.exe" available.
Installation of any .NET Core SDK works as a workaround.
The text was updated successfully, but these errors were encountered: