2015-11-16 11:21:57 -08:00
|
|
|
|
// Copyright (c) .NET Foundation and contributors. All rights reserved.
|
|
|
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
|
|
|
|
|
|
|
|
using System.Collections.Generic;
|
2015-10-13 14:31:29 -07:00
|
|
|
|
using Microsoft.Extensions.ProjectModel.Graph;
|
|
|
|
|
|
|
|
|
|
namespace Microsoft.Extensions.ProjectModel
|
|
|
|
|
{
|
|
|
|
|
public class PackageDescription : LibraryDescription
|
|
|
|
|
{
|
|
|
|
|
public PackageDescription(
|
|
|
|
|
string path,
|
2015-10-21 15:21:14 -07:00
|
|
|
|
LockFilePackageLibrary package,
|
|
|
|
|
LockFileTargetLibrary lockFileLibrary,
|
2015-10-13 14:31:29 -07:00
|
|
|
|
IEnumerable<LibraryRange> dependencies,
|
|
|
|
|
bool compatible)
|
|
|
|
|
: base(
|
|
|
|
|
new LibraryIdentity(package.Name, package.Version, LibraryType.Package),
|
2015-10-21 15:21:14 -07:00
|
|
|
|
"sha512-" + package.Sha512,
|
2015-10-13 14:31:29 -07:00
|
|
|
|
path,
|
|
|
|
|
dependencies: dependencies,
|
|
|
|
|
framework: null,
|
2015-10-20 01:43:37 -07:00
|
|
|
|
resolved: compatible,
|
2015-10-13 14:31:29 -07:00
|
|
|
|
compatible: compatible)
|
|
|
|
|
{
|
|
|
|
|
Library = package;
|
|
|
|
|
Target = lockFileLibrary;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public LockFileTargetLibrary Target { get; set; }
|
|
|
|
|
public LockFilePackageLibrary Library { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|