相关疑难解决方法(0)

如何解决.net测试挂起“正在开始执行测试,请稍候...”

我正在尝试dotnet test从我们的Jenkins构建服务器上的命令行执行,但是它挂在了上面:

Starting test execution, please wait...

在本地运行此命令时工作正常

如果切换到使用dotnet xunit它,将失败,并显示以下内容:

15:42:57 Locating binaries for framework netcoreapp2.1...
15:42:58 Running .NET Core 2.1 tests for framework netcoreapp2.1...
15:42:58 The specified framework version '2.1' could not be parsed
15:42:58 The specified framework 'Microsoft.NETCore.App', version '2.1' was not found.
15:42:58   - Check application dependencies and target a framework version installed at:
15:42:58       C:\Program Files\dotnet\
15:42:58   - Installing .NET Core prerequisites might help resolve this problem:
15:42:58       http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409
15:42:58   - The …
Run Code Online (Sandbox Code Playgroud)

unit-testing xunit.net jenkins .net-core

6
推荐指数
3
解决办法
1912
查看次数

标签 统计

.net-core ×1

jenkins ×1

unit-testing ×1

xunit.net ×1