2 instantiations of PrunePackageReference
NuGet.LibraryModel (1)
PrunePackageReference.cs (1)
42
return new
PrunePackageReference
(name, VersionRange.Parse("(," + version + "]"));
NuGet.ProjectModel (1)
JsonPackageSpecReader.Utf8JsonStreamReader.cs (1)
540
packagesToPrune[propertyName] = new
PrunePackageReference
(propertyName, VersionRange.Parse(version));
36 references to PrunePackageReference
NuGet.Build.Tasks.Console (3)
MSBuildStaticGraphRestore.cs (3)
397
internal static Dictionary<string,
PrunePackageReference
> GetPrunePackageReferences(IMSBuildProject project)
399
var result = new Dictionary<string,
PrunePackageReference
>(StringComparer.OrdinalIgnoreCase);
406
result.Add(id,
PrunePackageReference
.Create(id, versionString));
NuGet.Build.Tasks.Pack (2)
PackTaskLogic.cs (2)
1036
static bool IsDependencyPruned(LibraryDependency dependency, IReadOnlyDictionary<string,
PrunePackageReference
> packagesToPrune)
1038
if (packagesToPrune?.TryGetValue(dependency.Name, out
PrunePackageReference
packageToPrune) == true
NuGet.Commands (13)
RestoreCommand\DependencyGraphResolver.DependencyGraphItem.cs (3)
84
IReadOnlyDictionary<string,
PrunePackageReference
>? packagesToPrune,
157
IReadOnlyDictionary<string,
PrunePackageReference
>? packagesToPrune,
165
if (packagesToPrune?.TryGetValue(dependency.Name, out
PrunePackageReference
? packageToPrune) != true
RestoreCommand\RestoreCommand.cs (1)
958
if (framework.PackagesToPrune.TryGetValue(dependency.Name, out
PrunePackageReference
packageToPrune)
RestoreCommand\Utility\IncludeFlagUtils.cs (2)
65
static bool IsDependencyPruned(LibraryDependency dependency, IReadOnlyDictionary<string,
PrunePackageReference
> packagesToPrune)
67
if (packagesToPrune?.TryGetValue(dependency.Name, out
PrunePackageReference
packageToPrune) == true
RestoreCommand\Utility\MSBuildRestoreUtility.cs (4)
706
var prunePackageReferences = new Dictionary<string, Dictionary<string,
PrunePackageReference
>>(StringComparer.OrdinalIgnoreCase);
710
prunePackageReferences.Add(targetFramework.TargetAlias, new Dictionary<string,
PrunePackageReference
>(StringComparer.OrdinalIgnoreCase));
768
static void AddPackageToPrune(string id, string version, Dictionary<string,
PrunePackageReference
> frameworkInfo)
772
frameworkInfo.Add(id,
PrunePackageReference
.Create(id, version!));
RestoreCommand\Utility\PackageSpecFactory.cs (3)
834
internal static Dictionary<string,
PrunePackageReference
> GetPrunePackageReferences(ITargetFramework project)
836
var result = new Dictionary<string,
PrunePackageReference
>(StringComparer.OrdinalIgnoreCase);
843
result.Add(id,
PrunePackageReference
.Create(id, versionString));
NuGet.LibraryModel (4)
PrunePackageReference.cs (4)
15
public sealed class PrunePackageReference : IEquatable<
PrunePackageReference
>
35
public static
PrunePackageReference
Create(string name, string version)
66
return Equals(obj as
PrunePackageReference
);
69
public bool Equals(
PrunePackageReference
? other)
NuGet.ProjectModel (14)
JsonPackageSpecReader.Utf8JsonStreamReader.cs (3)
519
IDictionary<string,
PrunePackageReference
> packagesToPrune,
1425
Dictionary<string,
PrunePackageReference
> packagesToPrune = null;
1511
packagesToPrune ??= new Dictionary<string,
PrunePackageReference
>(StringComparer.OrdinalIgnoreCase);
PackageSpecReferenceDependencyProvider.cs (2)
412
static bool IsDependencyPruned(LibraryDependency dependency, IReadOnlyDictionary<string,
PrunePackageReference
> packagesToPrune)
414
if (packagesToPrune?.TryGetValue(dependency.Name, out
PrunePackageReference
packageToPrune) == true
PackageSpecWriter.cs (1)
602
private static void SetPackagesToPrune(IObjectWriter writer, IReadOnlyDictionary<string,
PrunePackageReference
> packagesToPrune, bool hashing)
ProjectLockFile\PackagesLockFileUtilities.cs (4)
470
private static (bool, string) HasP2PDependencyChanged(IEnumerable<LibraryDependency> newDependencies, IEnumerable<ProjectRestoreReference> projectRestoreReferences, IReadOnlyDictionary<string,
PrunePackageReference
> dependentProjectPackagesToPrune, IReadOnlyDictionary<string,
PrunePackageReference
> packagesToPrune, LockFileDependency projectDependency, DependencyGraphSpec dgSpec)
542
static bool IsDependencyPruned(LibraryDependency dependency, IReadOnlyDictionary<string,
PrunePackageReference
> packagesToPrune)
544
if (packagesToPrune?.TryGetValue(dependency.Name, out
PrunePackageReference
packageToPrune) == true
TargetFrameworkInformation.cs (4)
27
private IReadOnlyDictionary<string,
PrunePackageReference
> _packagesToPrune;
106
public IReadOnlyDictionary<string,
PrunePackageReference
> PackagesToPrune
111
_packagesToPrune = value ?? ImmutableDictionary<string,
PrunePackageReference
>.Empty;
129
PackagesToPrune = ImmutableDictionary<string,
PrunePackageReference
>.Empty;