public LibraryDependency(
     LibraryRange libraryRange,
     LibraryDependencyType type,
     LibraryIncludeFlags includeType,
     LibraryIncludeFlags suppressParent,
     IList <NuGetLogCode> noWarn,
     bool autoReferenced)
 {
     LibraryRange   = libraryRange;
     Type           = type;
     IncludeType    = includeType;
     SuppressParent = suppressParent;
     NoWarn         = noWarn;
     AutoReferenced = autoReferenced;
 }
 public LibraryDependency(
     LibraryRange libraryRange,
     LibraryDependencyType type,
     LibraryIncludeFlags includeType,
     LibraryIncludeFlags suppressParent,
     IList <NuGetLogCode> noWarn,
     bool autoReferenced,
     bool generatePathProperty,
     bool versionCentrallyManaged)
 {
     LibraryRange            = libraryRange;
     Type                    = type;
     IncludeType             = includeType;
     SuppressParent          = suppressParent;
     NoWarn                  = noWarn;
     AutoReferenced          = autoReferenced;
     GeneratePathProperty    = generatePathProperty;
     VersionCentrallyManaged = versionCentrallyManaged;
 }
示例#3
0
 internal LibraryDependency(
     LibraryRange libraryRange,
     LibraryIncludeFlags includeType,
     LibraryIncludeFlags suppressParent,
     IList <NuGetLogCode> noWarn,
     bool autoReferenced,
     bool generatePathProperty,
     bool versionCentrallyManaged,
     LibraryDependencyReferenceType libraryDependencyReferenceType,
     string aliases)
 {
     LibraryRange            = libraryRange;
     IncludeType             = includeType;
     SuppressParent          = suppressParent;
     NoWarn                  = noWarn;
     AutoReferenced          = autoReferenced;
     GeneratePathProperty    = generatePathProperty;
     VersionCentrallyManaged = versionCentrallyManaged;
     ReferenceType           = libraryDependencyReferenceType;
     Aliases                 = aliases;
 }
示例#4
0
 public static bool IsEclipsedBy(this LibraryRange library, LibraryRange other)
 {
     return(string.Equals(library.Name, other.Name, StringComparison.OrdinalIgnoreCase) &&
            string.Equals(library.TypeConstraint, other.TypeConstraint));
 }