我正在尝试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)