5 instantiations of ProjectRestoreReference
NuGet.Build.Tasks.Console (1)
MSBuildStaticGraphRestore.cs (1)
473projectReferences.Add(new ProjectRestoreReference
NuGet.Commands (2)
RestoreCommand\Utility\MSBuildRestoreUtility.cs (1)
675var reference = new ProjectRestoreReference()
RestoreCommand\Utility\PackageSpecFactory.cs (1)
607projectReferences.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)
459internal static List<ProjectRestoreReference> GetProjectReferences(IMSBuildProject project) 467var projectReferences = new List<ProjectRestoreReference>(projectReferenceItems.Count);
NuGet.Build.Tasks.Pack (1)
PackTaskLogic.cs (1)
958foreach (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)
146?? new List<ProjectRestoreReference>();
RestoreCommand\Utility\MSBuildRestoreUtility.cs (9)
180public static void ApplyIncludeFlags(ProjectRestoreReference dependency, string includeAssets, string excludeAssets, string privateAssets) 431foreach (var projectReference in framework.ProjectReferences) 624var aliasGroups = new Dictionary<string, List<ProjectRestoreReference>>(); 628aliasGroups.Add(alias, new List<ProjectRestoreReference>()); 647List<ProjectRestoreReference> references; 660foreach (KeyValuePair<string, List<ProjectRestoreReference>> frameworkPair in aliasGroups) 671private static Tuple<List<string>, ProjectRestoreReference> GetProjectRestoreReference(IMSBuildItem item, bool crossTargeting) 675var reference = new ProjectRestoreReference() 683return new Tuple<List<string>, ProjectRestoreReference>(frameworks, reference);
RestoreCommand\Utility\PackageSpecFactory.cs (2)
593internal static List<ProjectRestoreReference> GetProjectReferences(ITargetFramework project) 601var 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();