5 writes to Type
NuGet.Commands (2)
RestoreCommand\SourceRepositoryDependencyProvider.cs (2)
270Type = LibraryType.Package 287Type = LibraryType.Package
NuGet.DependencyResolver.Core (1)
ResolverUtility.cs (1)
575Type = LibraryType.Unresolved,
NuGet.LibraryModel (1)
LibraryIdentity.cs (1)
22Type = type;
NuGet.ProjectModel (1)
PackageSpecReferenceDependencyProvider.cs (1)
145Type = LibraryType.Project,
51 references to Type
NuGet.CommandLine.XPlat (4)
Commands\PackageReferenceCommands\AddPackageReferenceCommandRunner.cs (4)
487if (firstMatchingEntry.Key.Type == LibraryType.Project || 488firstMatchingEntry.Key.Type == LibraryType.ExternalProject) 490return (firstMatchingEntry.Key.Type, null); 493return (firstMatchingEntry.Key.Type, firstMatchingEntry
NuGet.Commands (35)
RestoreCommand\CompatibilityChecker.cs (1)
73if (node.Key.Type == LibraryType.Project)
RestoreCommand\DependencyGraphResolver.cs (6)
591if (newGraphNode.Item.Key.Type != LibraryType.Project 592&& newGraphNode.Item.Key.Type != LibraryType.ExternalProject 593&& newGraphNode.Item.Key.Type != LibraryType.Unresolved 630if (newGraphNode.Item.Key.Type == LibraryType.Unresolved) 827return resolvedDependencyGraphItem.Item.Key.Type == LibraryType.Project; 1017&& currentGraphItem.Key.Type == LibraryType.Project)
RestoreCommand\Diagnostics\DiagnosticUtility.cs (1)
29if (identity.Version != null && identity.Type == LibraryType.Package)
RestoreCommand\Diagnostics\IndexedRestoreTargetGraph.cs (1)
88&& node.Key.Type == libraryType)
RestoreCommand\Diagnostics\UnexpectedDependencyMessages.cs (1)
223if (dependency.Child.Type != LibraryType.Package)
RestoreCommand\DownloadDependencyResolutionResult.cs (2)
52if (LibraryType.Unresolved == dependency.Item2.Library.Type) 56else if (LibraryType.Package == dependency.Item2.Library.Type)
RestoreCommand\LockFileBuilder.cs (7)
73if (library.Type == LibraryType.Project || library.Type == LibraryType.ExternalProject) 113else if (library.Type == LibraryType.Package) 204if (library.Type == LibraryType.Project || library.Type == LibraryType.ExternalProject) 221else if (library.Type == LibraryType.Package) 534|| node.Item.Key.Type == LibraryType.Unresolved
RestoreCommand\Logging\TransitiveNoWarnUtils.cs (1)
111if (IsProject(dependencyGraphItem.Key.Type))
RestoreCommand\OriginalCaseGlobalPackageFolder.cs (1)
76.Where(remoteMatch => remoteMatch.Library.Type == LibraryType.Package);
RestoreCommand\ProjectRestoreCommand.cs (1)
496if (match == null || match.Library.Type != LibraryType.Package)
RestoreCommand\RestoreCommand.cs (1)
1708graph.Flattened.Where(e => e.Key.Type != LibraryType.Package)
RestoreCommand\RestoreTargetGraph.cs (2)
160if (node?.Item?.Key?.Type == LibraryType.Unresolved) 175if (node?.OuterNode != null && node.Item.Key.Type != LibraryType.Unresolved)
RestoreCommand\SourceRepositoryDependencyProvider.cs (1)
409match.Type);
RestoreCommand\Utility\AuditUtility.cs (2)
222if (graph.Flattened.Any(r => r.Key.Type == LibraryType.Package)) 382foreach (GraphItem<RemoteResolveResult>? node in graph.Flattened.Where(r => r.Key.Type == LibraryType.Package))
RestoreCommand\Utility\BuildAssetsUtils.cs (1)
515targetGraph.Flattened.Where(e => e.Key.Type == LibraryType.Package)
RestoreCommand\Utility\IncludeFlagUtils.cs (6)
208return item.Key.Type == LibraryType.Package 209|| item.Key.Type == LibraryType.Project 210|| item.Key.Type == LibraryType.ExternalProject; 220if (item.Key.Type == LibraryType.Project) 224else if (item.Key.Type == LibraryType.ExternalProject) 228else if (item.Key.Type == LibraryType.Package)
NuGet.DependencyResolver.Core (3)
GraphModel\GraphOperations.cs (2)
338if ((node.Item?.Key?.Type == LibraryType.Package) == true) 428var acceptedType = LibraryDependencyTargetUtils.Parse(acceptedNode.Item.Key.Type);
Remote\RemoteWalkContext.cs (1)
115if (item.Key.Type == LibraryType.Unresolved || !RemoteLibraryProviders.Contains(item.Data.Match.Provider))
NuGet.LibraryModel (7)
LibraryIdentity.cs (7)
33return Type + "/" + Name + " " + Version; 47return Type.Equals(other.Type) 63combiner.AddStruct(Type); 83TypeConstraint = LibraryDependencyTargetUtils.Parse(library.Type), 95var compare = string.Compare(Type, other.Type, StringComparison.OrdinalIgnoreCase);
NuGet.PackageManagement (2)
InstallationCompatibility.cs (1)
55.Where(result => result.Key.Type == LibraryType.Package)
Utility\BuildIntegratedProjectUtility.cs (1)
78.Where(library => library.Type == LibraryType.Package)