Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/295.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 正在崩溃的Visual Studio Live单元测试_C#_Visual Studio 2017_Live Unit Tests - Fatal编程技术网

C# 正在崩溃的Visual Studio Live单元测试

C# 正在崩溃的Visual Studio Live单元测试,c#,visual-studio-2017,live-unit-tests,C#,Visual Studio 2017,Live Unit Tests,我是stackoverflow的新用户,这就是我的问题: 作为我工作的一部分,我们最近安装了VS 2017企业版。一切正常,直到几周前,实时单元测试模块停止工作 恩扬能解决这种问题吗 这是输出控制台: [17:26:23.170信息]已开始实时单元测试。 [17:26:23.229错误]-FatalError-System.ArgumentNullException:值不能为null。 参数名称:key 在System.Collections.Generic.Dictionary的2.Inse

我是stackoverflow的新用户,这就是我的问题:

作为我工作的一部分,我们最近安装了VS 2017企业版。一切正常,直到几周前,实时单元测试模块停止工作

恩扬能解决这种问题吗

这是输出控制台:


[17:26:23.170信息]已开始实时单元测试。
[17:26:23.229错误]-FatalError-System.ArgumentNullException:值不能为null。
参数名称:key
在System.Collections.Generic.Dictionary的2.Insert中(TKey、TValue、布尔加法)
位于Microsoft.CodeAnalysis.LiveUnitTesting.AugmentedProjectDependencyGraph.AddDependencies(ProjectGraphNode projectNode)
在Microsoft.CodeAnalysis.LiveUnitTesting.AugmentedProjectDependencyGraph.EnsureRedirectDependencies()上
在Microsoft.CodeAnalysis.LiveUnitTesting.AugmentedProjectDependencyGraph.GetBuildOrder(解决方案解决方案,CancellationToken CancellationToken)
在Microsoft.CodeAnalysis.LiveUnitTesting.BuildManagement.BuildManagerState.d_u35.MoveNext()上
[17:26:24.099信息]现场单元测试已停止。


谢谢你的时间

您可以尝试按建议删除保存的数据,这对我很有效。

我们需要查看您的代码。但是错误消息会准确地告诉您问题所在,以及问题所在。我从消息中猜测,您正在尝试使用null键向字典中添加新项。看起来异常实际上不是来自失败的单元测试,而是来自Live单元测试框架(Microsoft.CodeAnalysis.LiveUnitTesting.AugmentedProjectDependencyGraph.AddDependencies)。尽管当我手动运行单元测试时,所有单元测试都通过了,但我还是得到了相同的异常。