// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; namespace RepoTasks.ProjectModel { internal class SolutionInfo { public SolutionInfo(string fullPath, string configName, IReadOnlyList projects, bool shouldBuild) { if (string.IsNullOrEmpty(fullPath)) { throw new ArgumentException(nameof(fullPath)); } if (string.IsNullOrEmpty(configName)) { throw new ArgumentException(nameof(configName)); } FullPath = fullPath; ConfigName = configName; Projects = projects ?? throw new ArgumentNullException(nameof(projects)); ShouldBuild = shouldBuild; } public string FullPath { get; } public string ConfigName { get; } public IReadOnlyList Projects { get; } public bool ShouldBuild { get; } } }