3 writes to Type
NuGet.Commands (2)
RestoreCommand\LockFileBuilder.cs (2)
108Type = LibraryType.Project, 668Type = LibraryType.Package,
NuGet.ProjectModel (1)
LockFile\Utf8JsonStreamLockFileLibraryConverter.cs (1)
115Type = type,
18 references to Type
Microsoft.NET.Build.Tasks (5)
LockFileExtensions.cs (2)
268=> library.Type == "package"; 274=> library.Type == "project";
LockFileLookup.cs (1)
24var libraryType = LibraryType.Parse(library.Type);
ResolvePackageAssets.cs (1)
1470var dependencyType = GetDependencyType(package.Type);
ResolvePackageDependencies.cs (1)
179item.SetMetadata(MetadataKeys.Type, package.Type);
NuGet.CommandLine.XPlat (2)
Commands\Package\Update\PackageUpdateCommandRunner.cs (1)
156.Where(l => l.Type == "package" && (packages is null || packages.Count == 0 || packages.Any(p => string.Equals(p.Id, l.Name, StringComparison.OrdinalIgnoreCase))))
Commands\Why\DependencyGraphFinder.cs (1)
109.Where(l => string.Equals(l.Type, "project", StringComparison.OrdinalIgnoreCase))
NuGet.Commands (7)
PackagesLockFileBuilder.cs (3)
23var libraryLookup = assetsFile.Libraries.Where(e => e.Type == LibraryType.Package) 90.Where(l => l.Type == LibraryType.Project || l.Type == LibraryType.ExternalProject)
RestoreCommand\LockFileBuilder.cs (2)
338if (RankReferences(existingLibrary.Type) > RankReferences(lib.Type))
RestoreCommand\OriginalCaseGlobalPackageFolder.cs (1)
141if (library.Type == LibraryType.Package)
RestoreCommand\RestoreCommand.cs (1)
1339foreach (var library in assetsFile.Libraries.Where(lib => lib.Type == LibraryType.Package))
NuGet.ProjectModel (4)
LockFile\LockFileFormat.cs (1)
252writer.WriteValue(library.Type);
LockFile\LockFileLibrary.cs (3)
55&& string.Equals(Type, other.Type, StringComparison.OrdinalIgnoreCase) 74combiner.AddStringIgnoreCase(Type);