PackageReferenceInfo.cs 773 B

123456789101112131415161718192021222324252627
  1. // Copyright (c) .NET Foundation. All rights reserved.
  2. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
  3. using System;
  4. using System.Collections.Generic;
  5. namespace RepoTasks.ProjectModel
  6. {
  7. internal class PackageReferenceInfo
  8. {
  9. public PackageReferenceInfo(string id, string version, bool isImplicitlyDefined)
  10. {
  11. if (string.IsNullOrEmpty(id))
  12. {
  13. throw new ArgumentException(nameof(id));
  14. }
  15. Id = id;
  16. Version = version;
  17. IsImplicitlyDefined = isImplicitlyDefined;
  18. }
  19. public string Id { get; }
  20. public string Version { get; }
  21. public bool IsImplicitlyDefined { get; }
  22. }
  23. }