xunit “could not load type” error
问题 I inherited a project and the tests ran fine. Today, I created a new class, and xunit errors out when I try to use this class in a test. Both the test project and the app are targeting .NET Framework 4.6.1. I do clean and rebuild on the both the solution and the test project, but I still get the error. error: Could not load type 'MyNewClass' from assembly 'MyApp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. project.json: "buildOptions": { "warningsAsErrors": true }, "testRunner":