Skip to content

NUnit does not work without .NET Core  #1277

@adampraszywka

Description

@adampraszywka

Since 3.16.0 NUnit.Console doesn't start without "dotnet.exe" available.
Installation of any .NET Core SDK works as a workaround.

& "C:\Program Files (x86)\NUnit.org\nunit-console\tools\nunit3-console.exe" SeleniumTestProject.dll --where "cat == X" 
NUnit Console 3.16.0 (Release) 
Copyright (c) 2022 Charlie Poole, Rob Prouse 
Runtime Environment 
   OS Version: Microsoft Windows NT 6.2.9200.0 
   Runtime: .NET Framework CLR v4.0.30319.42000 
Test Files 
    SeleniumTestProject.dll 
Test Filters 
    Where: cat == X
System.TypeInitializationException : The type initializer for 'NUnit.Engine.Services.RuntimeFrameworkService' threw an exception. 
  ----> System.ComponentModel.Win32Exception : The system cannot find the file specified 
--TypeInitializationException 
The type initializer for 'NUnit.Engine.Services.RuntimeFrameworkService' threw an exception. 
   at NUnit.Engine.Services.RuntimeFrameworkService.ApplyImageData(TestPackage package) 
   at NUnit.Engine.Services.RuntimeFrameworkService.ApplyImageData(TestPackage package) 
   at NUnit.Engine.Services.RuntimeFrameworkService.SelectRuntimeFramework(TestPackage package) 
   at NUnit.Engine.Runners.MasterTestRunner.GetEngineRunner() 
   at NUnit.Engine.Runners.MasterTestRunner.RunTests(ITestEventListener listener, TestFilter filter) 
   at NUnit.Engine.Runners.MasterTestRunner.Run(ITestEventListener listener, TestFilter filter) 
   at NUnit.ConsoleRunner.ConsoleRunner.RunTests(TestPackage package, TestFilter filter) 
   at NUnit.ConsoleRunner.Program.Main(String[] args) 
-- 
Win32Exception 
The system cannot find the file specified 
   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo) 
   at NUnit.Engine.Internal.RuntimeFrameworks.NetCoreFrameworkLocator.<GetRuntimeList>d__3.MoveNext() 
   at NUnit.Engine.Internal.RuntimeFrameworks.NetCoreFrameworkLocator.<FindDotNetCoreFrameworks>d__1.MoveNext() 
   at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection) 
   at NUnit.Engine.RuntimeFramework.FindAvailableFrameworks() 
   at NUnit.Engine.RuntimeFramework.get_AvailableFrameworks() 
   at NUnit.Engine.Services.RuntimeFrameworkService..cctor() 

Metadata

Metadata

Assignees

Labels

BugCriticalCritical Priority, i.e. requires an immediate hot fix.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions