public SolutionItem(Connect connect, Solution solution, bool recursive) { this._subItems = new List<SolutionItem>(); this._projectType = LanguageType.None; if (connect == null) { throw new ArgumentNullException("connect"); } if (solution == null) { throw new ArgumentNullException("solution"); } this._incrementSetting = new SolutionItemIncrementSettings(this); this._connect = connect; this._item = solution; this._itemType = SolutionItemType.Solution; this._name = Path.GetFileNameWithoutExtension(solution.FileName); this._filename = solution.FileName; this._uniqueName = this._name; this.GetGlobalVariables(); if (recursive) { SolutionItem.FillSolutionTree(connect, this, solution.Projects); } }
private SolutionItem(Connect connect, Project project, bool recursive) { this._subItems = new List<SolutionItem>(); this._projectType = LanguageType.None; if (project == null) { throw new ArgumentNullException("project"); } if (connect == null) { throw new ArgumentNullException("connect"); } this._incrementSetting = new SolutionItemIncrementSettings(this); this._connect = connect; this._item = project; this._name = project.Name; this._filename = project.FileName; this._uniqueName = project.UniqueName; if (!string.IsNullOrEmpty(this._filename) && string.IsNullOrEmpty(Path.GetExtension(this._filename))) { this._filename += Path.GetExtension(project.UniqueName); } if (string.IsNullOrEmpty(project.FullName)) { this._itemType = SolutionItemType.Folder; if (recursive) { SolutionItem.FillSolutionTree(connect, this, project.ProjectItems); } } else { this._itemType = SolutionItemType.Project; this.GetGlobalVariables(); } }
public SolutionItem(Connect connect, Solution solution) : this(connect, solution, true) { }
public WinWrapper(Connect connect) { this._c = connect; }
private SolutionItem(Connect connect, Project project) : this(connect, project, true) { }
private static void FillSolutionTree(Connect connect, SolutionItem solutionItem, ProjectItems projectItems) { if (projectItems != null) { foreach (ProjectItem projectItem in projectItems) { SolutionItem solutionItem2 = SolutionItem.ConstructSolutionItem(connect, projectItem.SubProject); if (solutionItem2 != null) { solutionItem.SubItems.Add(solutionItem2); } } } }
/// <summary> /// Initializes a new instance of the <see cref="Logger"/> class. /// </summary> /// <param name="connect">The connect.</param> internal Logger(Connect connect) { _connect = connect; _instance = this; }
public static SolutionItem ConstructSolutionItem(Connect connect, Project project, bool recursive) { SolutionItem result = null; if (SolutionItem.IsValidSolutionItem(project)) { result = new SolutionItem(connect, project, recursive); } return result; }
public static SolutionItem ConstructSolutionItem(Connect connect, Project project) { return SolutionItem.ConstructSolutionItem(connect, project, true); }
public BuildVersionIncrementor(Connect connect) { this._connect = connect; BuildVersionIncrementor._instance = this; }
/// <summary> /// Initializes a new instance of the <see cref="VersionIncrementer"/> class. /// </summary> /// <param name="connect">The connect.</param> public VersionIncrementer(Connect connect) { _connect = connect; }
internal Logger(Connect connect) { this._connect = connect; Logger._instance = this; }
public static SolutionItem ConstructSolutionItem(Connect connect, Project project) { return(SolutionItem.ConstructSolutionItem(connect, project, true)); }
/// <summary> /// Initializes a new instance of the <see cref="VersionIncrementer"/> class. /// </summary> /// <param name="connect">The connect.</param> public BuildVersionIncrementor(Connect connect) { _connect = connect; _instance = this; }