tag:help.appveyor.com,2012-11-13:/discussions/problems/6501-systeminvalidoperationexception-unknown-test-framework-could-not-find-xunitdll-v1-or-xunitexecutiondll-v2AppVeyor: Discussion 2018-08-25T02:16:42Ztag:help.appveyor.com,2012-11-13:Comment/423882232017-04-20T00:37:08Z2017-04-20T00:37:08ZSystem.InvalidOperationException: Unknown test framework: could not find xunit.dll (v1) or xunit.execution.*.dll (v2)<div><p>What command line do you use locally to run tests successfully?</p>
<p>Side note: your project was created as Git, but it is hosted on GitHub. If you want to use <code>appveyor.yml</code> file, see better build status and many other features, please re-create it as GitHub. Also note that <code>appveyor.yml</code> file should be in the root of repository.</p>
<p>Ilya.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/423882232017-04-20T05:39:25Z2017-04-20T05:39:25ZSystem.InvalidOperationException: Unknown test framework: could not find xunit.dll (v1) or xunit.execution.*.dll (v2)<div><p>Can I change this or do I have to recreate it.</p>
<p>For the test on the prompt I can use this command</p>
<pre>
<code>dotnet test ./tests/Painting.Website.Tests/Painting.Website.Tests.csproj</code>
</pre></div>r.wobbentag:help.appveyor.com,2012-11-13:Comment/423882232017-04-20T17:06:32Z2017-04-20T17:06:32ZSystem.InvalidOperationException: Unknown test framework: could not find xunit.dll (v1) or xunit.execution.*.dll (v2)<div><p>Please re-create it. Regarding tests, at this moment automatic test detection works well with classic .NET test projects, but not with .NET <strong>Core</strong> projects. It is tracked in <a href="https://github.com/appveyor/ci/issues/1404">this</a> GitHub issue. To run your tests, add your command as test script. For that if you use UI, switch to <code>script</code> from <code>auto</code>, For YAML add it under <code>test_script</code> tag (or export UI settings).</p></div>Ilya Finkelshteyn