【发布时间】:2017-04-04 12:38:20
【问题描述】:
我有一个在 VS2015 中运行良好的解决方案,但我无法使用新版本的 Visual Studio 2017 (15.0.0+26228.12) 打开。
根据 Windows“事件查看器”,这似乎是问题:项目已经传递引用了目标项目。
这里是完整的堆栈跟踪:
StreamJsonRpc.RemoteInvocationException: The project already transitively references the target project.
bei Microsoft.CodeAnalysis.SolutionState.CheckNotContainsTransitiveReference(ProjectId fromProjectId, ProjectId toProjectId)
bei Microsoft.CodeAnalysis.SolutionState.AddProjectReference(ProjectId projectId, ProjectReference projectReference)
bei Microsoft.CodeAnalysis.Solution.AddProjectReference(ProjectId projectId, ProjectReference projectReference)
bei Microsoft.CodeAnalysis.Project.AddProjectReference(ProjectReference projectReference)
bei Microsoft.CodeAnalysis.Workspace.UpdateReferencesAfterAdd(Solution solution)
bei Microsoft.CodeAnalysis.Workspace.UpdateReferencesAfterAdd()
bei Microsoft.CodeAnalysis.Remote.RemoteWorkspace.AddSolution(SolutionInfo solutionInfo)
bei Microsoft.CodeAnalysis.Remote.SolutionService.<UpdatePrimaryWorkspace_NoLockAsync>d__11.MoveNext()
解决方案相当复杂,使用文本编辑器对其进行更改以查找导致问题的项目就像大海捞针一样。
有人知道这个错误并能指出我正确的方向吗?也许我必须查看解决方案中的某个部分才能找到错误?
【问题讨论】:
-
向 MS 报告可能是更好的选择。单击帮助 -> 种子反馈 -> 报告问题。在新窗口中,搜索“解决方案崩溃”。类似的抱怨还有很多。搜索“传递”,你会看到同样的问题(未修复)
标签: visual-studio visual-studio-2017