private void SetCopyLocalForSolution() { var projects = SolutionHelper.GetProjects(Global.Dte); int changeCount = 0; foreach (var project in projects) { changeCount += ReferencesHelper.SetCopyLocalFlag(project); SaveProjectIfNeeded(project); } LogChangesToOutput(changeCount); }
/// <summary> /// Set Copy Local for the current solution. /// </summary> private static void SetCopyLocalForSolution() { var projects = SolutionHelper.GetProjects(_dte); int changeCount = 0; foreach (var project in projects.Where(project => !_options.Skip(project.Name))) { changeCount += ReferencesHelper.SetCopyLocalFlag(project, _options.CopyLocalFlag, _options.PreviewMode); if (!_options.PreviewMode) { SaveProjectIfNeeded(project); } } LogChangesToOutput(changeCount); }