DotNetCliReferenceInfo.cs 613 B

123456789101112131415161718192021222324
  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. namespace RepoTasks.ProjectModel
  5. {
  6. internal class DotNetCliReferenceInfo
  7. {
  8. public DotNetCliReferenceInfo(string id, string version)
  9. {
  10. if (string.IsNullOrEmpty(id))
  11. {
  12. throw new ArgumentException(nameof(id));
  13. }
  14. Id = id;
  15. Version = version;
  16. }
  17. public string Id { get; }
  18. public string Version { get; }
  19. }
  20. }