nunit / nunitlite

MIT License
15 stars 14 forks source link

NUnitLite cannot find .dll file #2

Closed la-yumba closed 7 years ago

la-yumba commented 7 years ago

Environment:

project.json looks like:

{
   "dependencies": {
      "NUnit": "3.5.0",
      "NUnitLite": "3.5.0",
      "System.Reflection.TypeExtensions": "4.3.0"
      // etc...
   },
   "frameworks": {
      "netcoreapp1.1": {
         "imports": [
            "dnxcore50"
         ]
      }
   },

   "buildOptions": {
      "emitEntryPoint": true,
      "preserveCompilationContext": true,
      "xmlDoc": false
   },
}

and Program.cs looks like:

new AutoRun(typeof(Program).GetTypeInfo().Assembly)
   .Execute(args, new ExtendedTextWrapper(Console.Out), Console.In);

Scenario

start the program to run the tests with dotnet run

Expected

it runs the test

Actual

NUnitLite 3.5.0 (Portable)
Copyright (C) 2016 Charlie Poole

Test Files
    C:\myPath\to\MyAssembly\bin\Debug\netcoreapp1.1\MyAssembly.dll

Could not load file or assembly 'test, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

Note:

rprouse commented 7 years ago

NUnitLite has been merged into the main framework, so I am moving this issue there.

rprouse commented 7 years ago

Issue moved to nunit/nunit #1970 via ZenHub