未验证 提交 4db5dddd 编写于 作者: S Shyam-Gupta 提交者: GitHub

Merge pull request #25328 from dotnet/merges/dev15.6.x-to-dev15.7.x

Merge dev15.6.x to dev15.7.x
...@@ -1200,8 +1200,14 @@ public virtual void Disconnect() ...@@ -1200,8 +1200,14 @@ public virtual void Disconnect()
if (_projectsReferencingMe.Count > 0) if (_projectsReferencingMe.Count > 0)
{ {
FatalError.ReportWithoutCrash(new Exception("We still have projects referencing us. That's not expected.")); // We shouldn't be able to get here, but for reasons we don't entirely
// understand we sometimes do. We've long assumed that by the time a project is
// disconnected, all references to that project have been removed. However, it
// appears that this isn't always true when closing a solution (which includes
// reloading the solution, or opening a different solution) or when reloading a
// project that has changed on disk, or when deleting a project from a
// solution.
// Clear just so we don't cause a leak // Clear just so we don't cause a leak
_projectsReferencingMe.Clear(); _projectsReferencingMe.Clear();
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册