我有一个可以在VS2015中正常工作的解决方案,我无法用新版本的Visual Studio 2017(15.0.0 + 26228.12)打开该解决方案。当打开某些解决方案时,Visual Studio 2017崩溃
这似乎是根据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报告可能是更好的选择。点击帮助 - >种子反馈 - >报告问题。在新窗口中,搜索'解决方案崩溃'。有很多类似的投诉。搜索'transitively',你会看到一个相同的问题(不固定) – qxg