Unable to find testhost.dll. Please publish your test project and retry

前端 未结 19 1065
星月不相逢
星月不相逢 2021-02-01 11:40

I have a simple dotnet core class library with a single XUnit test method:

TestLib.csproj:


  
            


        
19条回答
  •  独厮守ぢ
    2021-02-01 12:12

    I had created a class library and tried to use the XUnit NuGet package in it.

    What I should have done was created an XUnit project using this command: dotnet new xunit -n TestProject

    I found this helpful page.

提交回复
热议问题