protected async Task GetDTEProjectAsync(string projectName = null) { if (string.IsNullOrEmpty(projectName)) { DTEProject = (await SolutionManager.GetDefaultProjectAsync()) as Project; if (DTEProject == null) { ErrorHandler.WriteProjectNotFoundError("Default", terminating: true); } } else { DTEProject = (await SolutionManager.GetProjectAsync(projectName)) as Project; if (DTEProject == null) { ErrorHandler.WriteProjectNotFoundError(projectName, terminating: true); } } }
protected Task <EnvDTE.Project> GetDefaultProjectAsync() { return(SolutionManager.GetDefaultProjectAsync()); }