崩溃的 Visual Studio Live 单元测试 [英] Crashing Visual Studio Live Unit Testing

查看:41
本文介绍了崩溃的 Visual Studio Live 单元测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

作为我工作的一部分,我们最近安装了 VS 2017 企业版.一切都很好,直到几周前 Live Unit Testing 模块停止工作.

有没有人能解决这类问题?

这是输出控制台:

<代码>[17:26:23.170 信息] 实时单元测试开始.[17:26:23.229 错误] - FatalError - System.ArgumentNullException:值不能为空.参数名称:key在 System.Collections.Generic.Dictionary'2.Insert(TKey key, TValue value, Boolean add)在 Microsoft.CodeAnalysis.LiveUnitTesting.AugmentedProjectDependencyGraph.AddDependencies(ProjectGraphNode projectNode)在 Microsoft.CodeAnalysis.LiveUnitTesting.AugmentedProjectDependencyGraph.EnsureDirectDependencies()在 Microsoft.CodeAnalysis.LiveUnitTesting.AugmentedProjectDependencyGraph.GetBuildOrder(解决方案,CancellationToken 取消令牌)在 Microsoft.CodeAnalysis.LiveUnitTesting.BuildManagement.BuildManagerState.<BuildAsync>d__35.MoveNext()[17:26:24.099 信息] 实时单元测试停止.

I´m a new user in stackoverflow and this is my problem:

As part of my work, we recently installed VS 2017 Enterprise Edition. Everything was fine untill few weeks ago the Live Unit Testing module stop working.

Does enyone was able to resolve this kind of problems?

This is the output console:

[17:26:23.170 Info] Live Unit Testing started. [17:26:23.229 Error] - FatalError - System.ArgumentNullException: Value cannot be null. Parameter name: key at System.Collections.Generic.Dictionary'2.Insert(TKey key, TValue value, Boolean add) at Microsoft.CodeAnalysis.LiveUnitTesting.AugmentedProjectDependencyGraph.AddDependencies(ProjectGraphNode projectNode) at Microsoft.CodeAnalysis.LiveUnitTesting.AugmentedProjectDependencyGraph.EnsureDirectDependencies() at Microsoft.CodeAnalysis.LiveUnitTesting.AugmentedProjectDependencyGraph.GetBuildOrder(Solution solution, CancellationToken cancellationToken) at Microsoft.CodeAnalysis.LiveUnitTesting.BuildManagement.BuildManagerState.<BuildAsync>d__35.MoveNext() [17:26:24.099 Info] Live Unit Testing stopped.

Output Console Image

Thanks for yor time!

解决方案

You can try deleting the saved data as recommended at https://docs.microsoft.com/ru-ru/visualstudio/test/live-unit-testing?view=vs-2017, it worked for me.

这篇关于崩溃的 Visual Studio Live 单元测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆