2015-10-13 14:31:29 -07:00
|
|
|
// 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.Linq;
|
|
|
|
using Microsoft.Extensions.ProjectModel.Graph;
|
|
|
|
using NuGet.Frameworks;
|
|
|
|
|
|
|
|
namespace Microsoft.Extensions.ProjectModel.Resolution
|
|
|
|
{
|
2015-10-17 07:34:04 -07:00
|
|
|
public static class UnresolvedDependencyProvider
|
2015-10-13 14:31:29 -07:00
|
|
|
{
|
2015-10-17 07:34:04 -07:00
|
|
|
public static LibraryDescription GetDescription(LibraryRange libraryRange, NuGetFramework targetFramework)
|
2015-10-13 14:31:29 -07:00
|
|
|
{
|
|
|
|
return new LibraryDescription(
|
|
|
|
new LibraryIdentity(libraryRange.Name, libraryRange.VersionRange?.MinVersion, libraryRange.Target),
|
|
|
|
path: null,
|
|
|
|
dependencies: Enumerable.Empty<LibraryRange>(),
|
|
|
|
framework: targetFramework,
|
|
|
|
resolved: false,
|
2015-10-18 04:35:49 -07:00
|
|
|
compatible: true);
|
2015-10-13 14:31:29 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|