// 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 { public static class UnresolvedDependencyProvider { public static LibraryDescription GetDescription(LibraryRange libraryRange, NuGetFramework targetFramework) { return new LibraryDescription( new LibraryIdentity(libraryRange.Name, libraryRange.VersionRange?.MinVersion, libraryRange.Target), path: null, dependencies: Enumerable.Empty(), framework: targetFramework, resolved: false, compatible: true); } } }