aspnetcore/src/Microsoft.Extensions.Projec.../Resolution/Dependency.cs

27 lines
710 B
C#

// 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;
using System.Linq;
using System.Threading.Tasks;
namespace Microsoft.Extensions.ProjectModel.Resolution
{
public class Dependency
{
public Dependency(string name, string version)
{
if (string.IsNullOrEmpty(name))
{
throw new ArgumentNullException(nameof(name));
}
Name = name;
Version = version;
}
public string Name { get; }
public string Version { get; }
}
}