public void WriteBuildInfo(string name, Version version) { if (options.Set(BuildOptions.ErrorList)) { err.Clear(); } if (options.Set(BuildOptions.Output)) { output.Clear(); output.WriteLine(OutputFormat.Header, "Build started. File: {0}", doc.Title); output.WriteLine(OutputFormat.Important, "Using {0} version {1}.", name, version); } }
protected internal override async Task MenuItemCallbackAsync() { _errorListService.Clear(); var vcProject = _vcProjectService.GetActiveProject(); if (vcProject == null) { _errorListService.WriteError("A C++ project with a conan file must be selected."); return; } await _conanService.InstallAsync(vcProject); await _conanService.IntegrateAsync(vcProject); }
protected internal override async Task MenuItemCallbackAsync() { await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(); _errorListService.Clear(); var dte = Package.GetGlobalService(typeof(SDTE)) as DTE; foreach (Project project in dte.Solution.Projects) { if (_vcProjectService.IsConanProject(project)) { await _conanService.InstallAsync(_vcProjectService.AsVCProject(project)); await _conanService.IntegrateAsync(_vcProjectService.AsVCProject(project)); } } await TaskScheduler.Default; }