diff options
Diffstat (limited to 'build/tasks/ProjectModel/SolutionInfo.cs')
-rw-r--r-- | build/tasks/ProjectModel/SolutionInfo.cs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/build/tasks/ProjectModel/SolutionInfo.cs b/build/tasks/ProjectModel/SolutionInfo.cs index 5fe51132db..dce2f0bdd3 100644 --- a/build/tasks/ProjectModel/SolutionInfo.cs +++ b/build/tasks/ProjectModel/SolutionInfo.cs @@ -3,12 +3,13 @@ using System; using System.Collections.Generic; +using System.IO; namespace RepoTasks.ProjectModel { internal class SolutionInfo { - public SolutionInfo(string fullPath, string configName, IReadOnlyList<ProjectInfo> projects, bool shouldBuild) + public SolutionInfo(string fullPath, string configName, IReadOnlyList<ProjectInfo> projects, bool shouldBuild, bool shipped) { if (string.IsNullOrEmpty(fullPath)) { @@ -20,15 +21,24 @@ namespace RepoTasks.ProjectModel throw new ArgumentException(nameof(configName)); } + Directory = Path.GetDirectoryName(fullPath); FullPath = fullPath; ConfigName = configName; Projects = projects ?? throw new ArgumentNullException(nameof(projects)); ShouldBuild = shouldBuild; + Shipped = shipped; + + foreach (var proj in Projects) + { + proj.SolutionInfo = this; + } } + public string Directory { get; } public string FullPath { get; } public string ConfigName { get; } public IReadOnlyList<ProjectInfo> Projects { get; } public bool ShouldBuild { get; } + public bool Shipped { get; } } } |