Visual studio 2015 测试发现期间出现Visual Studio dotnet核心套接字错误

Visual studio 2015 测试发现期间出现Visual Studio dotnet核心套接字错误,visual-studio-2015,xunit,.net-core,Visual Studio 2015,Xunit,.net Core,我正在VisualStudio中创建一个测试项目。它生成,但无法发现项目中的测试,出现以下错误: Unable to start C:\Program Files\dotnet\dotnet.exe dotnet-test Error: 0 : [ReportingChannel]: Waiting for message failed System.IO.IOException: Unable to read data from the transport connection: An est

我正在VisualStudio中创建一个测试项目。它生成,但无法发现项目中的测试,出现以下错误:

Unable to start C:\Program Files\dotnet\dotnet.exe
dotnet-test Error: 0 : [ReportingChannel]: Waiting for message failed System.IO.IOException: Unable to read data from the transport connection: An established connection was aborted by the software in your host machine. ---> System.Net.Sockets.SocketException: An established connection was aborted by the software in your host machine
错误日志的全文可以在这里看到

这是我的project.json文件

"version": "1.0.0-*",

"dependencies": {
    "MyProject.Web": {
        "target": "project",
        "version": "1.0.0-*"
    },
    "Moq": "4.6.38-alpha",
    "xunit": "2.2.0-beta3-build3402",
            "xunit.runner.console": "2.2.0-beta3-build3402",
    "xunit.runner.visualstudio": "2.2.0-beta3-build1187"
},

"testRunner": "xunit",

"frameworks": {
    "netcoreapp1.0": {
        "imports": "dnxcore50",
        "dependencies": {
            "Microsoft.NETCore.App": {
                "type": "platform",
                "version": "1.0.0"
            }
        }
    }
},
"runtimes": {
    "win10-x64": {}
}

令人沮丧的是,直到昨天为止,这个项目已经运行了好几个星期,进行了大约40次测试。有没有办法解决这个问题?

好吧,我安装了dotnet test xunit包,VS test Explorer现在可以看到并运行我的测试。Resharper仍然找不到它们,但我想在解决整个MSBuild dotnet core问题之前,我们还会再检查几次。

升级包(nuget)后,我遇到了类似的问题,然后通过此线程解决了这个问题(如果针对core和netxxx,顺序很重要)

我也有同样的问题。因此,请将问题向上箭头,看看我们是否可以请人关注。具体地说,我发现这个链接让我开始:是的。这就是我目前正在使用的