我正在Visual中创建一个测试项目。它构建,但未能发现项目中的测试,出现以下错误:
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多个测试中已经进行了几个星期的测试。有什么办法克服这个问题吗?
发布于 2016-10-21 19:56:27
嗯,我安装了dotnet-测试-xunit包,VS测试资源管理器现在看到并运行我的测试。Resharper仍然找不到它们,但我想在解决整个MSBuild dotnet核心问题之前,我们还要再经历几次。
发布于 2017-08-24 21:40:44
在升级软件包(Nuget)之后,我遇到了类似的问题,然后通过这个线程解决了它(如果您的目标是核心和netxxx),那么订单就是问题了。
https://stackoverflow.com/questions/40142823
复制相似问题