From d72604dfa155dbc881be5900b21a191c756adcd8 Mon Sep 17 00:00:00 2001 From: Kevin Pilch Date: Wed, 7 Jun 2017 15:48:36 -0700 Subject: [PATCH] Force load projects that failed design time builds, not ones that opt out of LSL The solution build manager will handle the opted out ones, but not the failed design time build ones. Fixes #19407. --- .../Implementation/ProjectSystem/VisualStudioProjectTracker.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/VisualStudio/Core/Def/Implementation/ProjectSystem/VisualStudioProjectTracker.cs b/src/VisualStudio/Core/Def/Implementation/ProjectSystem/VisualStudioProjectTracker.cs index 2aff3354cee46..00f60ca032b54 100644 --- a/src/VisualStudio/Core/Def/Implementation/ProjectSystem/VisualStudioProjectTracker.cs +++ b/src/VisualStudio/Core/Def/Implementation/ProjectSystem/VisualStudioProjectTracker.cs @@ -636,7 +636,7 @@ private void ForceLoadProjectsWhoseDesignTimeBuildFailed(IReadOnlyDictionary DesignTimeBuildFailed(pi.Value) && !solution7.IsDeferredProjectLoadAllowed(pi.Key)); + var projectInfosOfProjectsThatFailed = projectInfos.Where(pi => DesignTimeBuildFailed(pi.Value) && solution7.IsDeferredProjectLoadAllowed(pi.Key)); var guidsOfProjectsThatFailed = projectInfosOfProjectsThatFailed.Select(pi => GetProjectGuid(pi.Key)).ToArray(); OutputToOutputWindow($"\tForcing load of {guidsOfProjectsThatFailed.Length} projects."); OutputListToOutputWindow("\tIncluding ", projectInfosOfProjectsThatFailed.Select(pi => pi.Key));