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

前端 未结 19 1122
星月不相逢
星月不相逢 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:03

    If you are targeting netstandard2.0 this will not work. If are using .NET Core. make sure the .csproj contains the following lines:

    netcoreapp3.0

    and also contains the package Microsoft.NET.Test.Sdk

提交回复
热议问题