public VisualStudioSolution(SolutionFile solution) { _solution = solution; _app = new VisualStudioApp(); Project = _app.OpenProject(solution.Filename); ThreadHelper.Generic.Invoke(Keyboard.Reset); SolutionExplorer = _app.OpenSolutionExplorer(); SelectSolutionNode(); }
public VisualStudioInstance(SolutionFile solution, VisualStudioApp app) { _solution = solution; _app = app; Project = _app.OpenProject(solution.Filename); ThreadHelper.JoinableTaskFactory.Run(async() => { await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(); Keyboard.Reset(); }); _solutionExplorer = _app.OpenSolutionExplorer(); SelectSolutionNode(); }