5 instantiations of ProjectRestoreReference
NuGet.Build.Tasks.Console (1)
MSBuildStaticGraphRestore.cs (1)
472projectReferences.Add(new ProjectRestoreReference
NuGet.Commands (2)
RestoreCommand\Utility\MSBuildRestoreUtility.cs (1)
591var reference = new ProjectRestoreReference()
RestoreCommand\Utility\PackageSpecFactory.cs (1)
762projectReferences.Add(new ProjectRestoreReference
NuGet.ProjectModel (2)
JsonPackageSpecReader.Utf8JsonStreamReader.cs (1)
1363projectReferences.Add(new ProjectRestoreReference()
ProjectRestoreReference.cs (1)
74var clonedObject = new ProjectRestoreReference();
38 references to ProjectRestoreReference
NuGet.Build.Tasks.Console (2)
MSBuildStaticGraphRestore.cs (2)
458internal static List<ProjectRestoreReference> GetProjectReferences(IMSBuildProject project) 466var projectReferences = new List<ProjectRestoreReference>(projectReferenceItems.Count);
NuGet.Build.Tasks.Pack (1)
PackTaskLogic.cs (1)
956foreach (var projectReference in framework.ProjectReferences)
NuGet.CommandLine.XPlat (4)
Commands\Why\DependencyGraphFinder.cs (4)
51IList<ProjectRestoreReference> directProjectReferences) 74static (string targetAlias, ImmutableArray<LibraryDependency> directPackages, IList<ProjectRestoreReference> directProjectReferences) 79IList<ProjectRestoreReference> directProjectReferences; 98IList<ProjectRestoreReference> directProjectReferences,
NuGet.Commands (12)
RestoreCommand\RequestFactory\DependencyGraphSpecRequestProvider.cs (1)
145?? new List<ProjectRestoreReference>();
RestoreCommand\Utility\MSBuildRestoreUtility.cs (9)
147public static void ApplyIncludeFlags(ProjectRestoreReference dependency, string includeAssets, string excludeAssets, string privateAssets) 348foreach (var projectReference in framework.ProjectReferences) 541var aliasGroups = new Dictionary<string, List<ProjectRestoreReference>>(); 545aliasGroups.Add(alias, new List<ProjectRestoreReference>()); 563List<ProjectRestoreReference> references; 576foreach (KeyValuePair<string, List<ProjectRestoreReference>> frameworkPair in aliasGroups) 587private static Tuple<List<string>, ProjectRestoreReference> GetProjectRestoreReference(IMSBuildItem item) 591var reference = new ProjectRestoreReference() 599return new Tuple<List<string>, ProjectRestoreReference>(frameworks, reference);
RestoreCommand\Utility\PackageSpecFactory.cs (2)
748internal static List<ProjectRestoreReference> GetProjectReferences(ITargetFramework project) 756var projectReferences = new List<ProjectRestoreReference>(projectReferenceItems.Count);
NuGet.PackageManagement (5)
Projects\DefaultProjectServices.cs (2)
53public Task<IEnumerable<ProjectRestoreReference>> GetProjectReferencesAsync( 57return TaskResult.EmptyEnumerable<ProjectRestoreReference>();
Projects\IProjectSystemReferencesReader.cs (1)
40Task<IEnumerable<ProjectRestoreReference>> GetProjectReferencesAsync(
Projects\MSBuildNuGetProject.cs (1)
694foreach (var reference in references)
Projects\ProjectJsonNuGetProject.cs (1)
235foreach (var reference in references)
NuGet.ProjectModel (14)
JsonPackageSpecReader.Utf8JsonStreamReader.cs (1)
1317List<ProjectRestoreReference> projectReferences = new();
PackageSpecReferenceDependencyProvider.cs (1)
256foreach (var reference in referencesForFramework.ProjectReferences)
PackageSpecWriter.cs (1)
244foreach (var project in framework.ProjectReferences.OrderBy(e => e.ProjectPath, PathUtility.GetStringComparerBasedOnOS()))
ProjectLockFile\PackagesLockFileUtilities.cs (4)
188foreach (var projectReference in restoreMetadataFramework.ProjectReferences) 256foreach (var reference in p2pSpecProjectRestoreMetadataFrameworkInfo.ProjectReferences) 470private static (bool, string) HasP2PDependencyChanged(IEnumerable<LibraryDependency> newDependencies, IEnumerable<ProjectRestoreReference> projectRestoreReferences, IReadOnlyDictionary<string, PrunePackageReference> dependentProjectPackagesToPrune, IReadOnlyDictionary<string, PrunePackageReference> packagesToPrune, LockFileDependency projectDependency, DependencyGraphSpec dgSpec) 521foreach (var dependency in transitivelyFlowingProjectReferences)
ProjectRestoreMetadataFrameworkInfo.cs (2)
27public IList<ProjectRestoreReference> ProjectReferences { get; set; } = new List<ProjectRestoreReference>();
ProjectRestoreReference.cs (5)
12public class ProjectRestoreReference : IEquatable<ProjectRestoreReference> 45return Equals(obj as ProjectRestoreReference); 53public bool Equals(ProjectRestoreReference other) 72public ProjectRestoreReference Clone() 74var clonedObject = new ProjectRestoreReference();