提交 16ea9949 编写于 作者: C CyrusNajmabadi 提交者: GitHub

Merge pull request #20150 from CyrusNajmabadi/integrationTestHang

Switch back to the UI thread when cleaning up the solution in integration tests.
......@@ -286,6 +286,7 @@ private string GetProjectTemplatePath(string projectTemplate, string languageNam
}
public void CleanUpOpenSolution()
=> InvokeOnUIThread(() =>
{
var dte = GetDTE();
dte.Documents.CloseAll(EnvDTE.vsSaveChanges.vsSaveChangesNo);
......@@ -320,7 +321,7 @@ public void CleanUpOpenSolution()
IntegrationHelper.TryDeleteDirectoryRecursively(directoryToDelete);
}
}
}
});
private EnvDTE.Project GetProject(string nameOrFileName)
=> _solution.Projects.OfType<EnvDTE.Project>().First(p
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册