1 type derived from ProjectRestoreMetadata
NuGet.ProjectModel (1)
PackagesConfigProjectRestoreMetadata.cs (1)
9public class PackagesConfigProjectRestoreMetadata : ProjectRestoreMetadata
12 instantiations of ProjectRestoreMetadata
aspire-managed (1)
NuGet\Commands\RestoreCommand.cs (1)
360var restoreMetadata = new ProjectRestoreMetadata
Microsoft.Build.NuGetSdkResolver (1)
RestoreRunnerEx.cs (1)
84RestoreMetadata = new ProjectRestoreMetadata
NuGet.Build.Tasks.Console (2)
MSBuildStaticGraphRestore.cs (2)
938RestoreMetadata = new ProjectRestoreMetadata() 1148restoreMetadata = new ProjectRestoreMetadata
NuGet.Commands (4)
RestoreCommand\Utility\MSBuildRestoreUtility.cs (2)
373RestoreMetadata = new ProjectRestoreMetadata() 969: new ProjectRestoreMetadata();
RestoreCommand\Utility\PackageSpecFactory.cs (1)
149restoreMetadata = new ProjectRestoreMetadata
RestoreCommand\Utility\ToolRestoreUtility.cs (1)
49RestoreMetadata = new ProjectRestoreMetadata()
NuGet.PackageManagement (2)
Projects\MSBuildNuGetProject.cs (1)
676var metadata = new ProjectRestoreMetadata();
Projects\ProjectJsonNuGetProject.cs (1)
183var metadata = new ProjectRestoreMetadata();
NuGet.ProjectModel (2)
JsonPackageSpecReader.Utf8JsonStreamReader.cs (1)
1065msbuildMetadata = new ProjectRestoreMetadata();
ProjectRestoreMetadata.cs (1)
269var clone = new ProjectRestoreMetadata();
36 references to ProjectRestoreMetadata
aspire-managed (1)
NuGet\Commands\RestoreCommand.cs (1)
360var restoreMetadata = new ProjectRestoreMetadata
NuGet.Build.Tasks.Console (4)
MSBuildStaticGraphRestore.cs (4)
1078(ProjectRestoreMetadata restoreMetadata, List<TargetFrameworkInformation> targetFrameworkInfos) = GetProjectRestoreMetadataAndTargetFrameworkInformation(project, projectsByTargetFramework, settings); 1117/// <returns>A <see cref="Tuple" /> containing the <see cref="ProjectRestoreMetadata" /> and <see cref="List{TargetFrameworkInformation}" /> for the specified project.</returns> 1118private (ProjectRestoreMetadata RestoreMetadata, List<TargetFrameworkInformation> TargetFrameworkInfos) GetProjectRestoreMetadataAndTargetFrameworkInformation(IMSBuildProject project, IReadOnlyDictionary<string, IMSBuildProject> projectsByTargetFramework, ISettings settings) 1135ProjectRestoreMetadata restoreMetadata;
NuGet.Commands (10)
RestoreCommand\DependencyGraphResolver.DependencyGraphItem.cs (4)
77/// <param name="projectRestoreMetadata">The <see cref="ProjectRestoreMetadata" /> of the current restore.</param> 83ProjectRestoreMetadata projectRestoreMetadata, 148/// <param name="projectRestoreMetadata">The <see cref="ProjectRestoreMetadata" /> of the current restore.</param> 156ProjectRestoreMetadata projectRestoreMetadata,
RestoreCommand\LockFileBuilder.cs (1)
158var restoreMetadata = project.RestoreMetadata;
RestoreCommand\Utility\PackageSpecFactory.cs (4)
47(ProjectRestoreMetadata? restoreMetadata, List<TargetFrameworkInformation>? targetFrameworkInfos) = GetProjectRestoreMetadataAndTargetFrameworkInformation(project, settings); 119/// <returns>A <see cref="Tuple" /> containing the <see cref="ProjectRestoreMetadata" /> and <see cref="List{TargetFrameworkInformation}" /> for the specified project.</returns> 120private static (ProjectRestoreMetadata? RestoreMetadata, List<TargetFrameworkInformation>? TargetFrameworkInfos) GetProjectRestoreMetadataAndTargetFrameworkInformation(IProject project, ISettings settings) 136ProjectRestoreMetadata restoreMetadata;
RestoreCommand\Utility\SpecValidationUtility.cs (1)
103var restoreMetadata = spec.RestoreMetadata;
NuGet.PackageManagement (2)
Projects\MSBuildNuGetProject.cs (1)
676var metadata = new ProjectRestoreMetadata();
Projects\ProjectJsonNuGetProject.cs (1)
183var metadata = new ProjectRestoreMetadata();
NuGet.ProjectModel (19)
JsonPackageSpecReader.Utf8JsonStreamReader.cs (1)
1055ProjectRestoreMetadata msbuildMetadata;
PackagesConfigProjectRestoreMetadata.cs (1)
47public override ProjectRestoreMetadata Clone()
PackageSpec.cs (1)
79public ProjectRestoreMetadata RestoreMetadata { get; set; }
PackageSpecOperations.cs (2)
23/// if the <see cref="ProjectRestoreMetadata.ProjectStyle" /> is <see cref="ProjectStyle.PackageReference"/> 85/// if the <see cref="ProjectRestoreMetadata.ProjectStyle" /> is <see cref="ProjectStyle.PackageReference"/>
PackageSpecWriter.cs (8)
65private static bool IsMetadataValid(ProjectRestoreMetadata msbuildMetadata) 87var msbuildMetadata = packageSpec.RestoreMetadata; 162private static void WriteMetadataBooleans(IObjectWriter writer, ProjectRestoreMetadata msbuildMetadata) 179private static void WriteNuGetLockFileProperties(IObjectWriter writer, ProjectRestoreMetadata msbuildMetadata) 221private static void WriteMetadataTargetFrameworks(IObjectWriter writer, ProjectRestoreMetadata msbuildMetadata, bool useTargetFrameworkAsKey) 278private static void WriteMetadataFiles(IObjectWriter writer, ProjectRestoreMetadata msbuildMetadata) 293private static void WriteMetadataSources(IObjectWriter writer, ProjectRestoreMetadata msbuildMetadata) 309private static void SetWarningProperties(IObjectWriter writer, ProjectRestoreMetadata msbuildMetadata)
ProjectRestoreMetadata.cs (6)
16public class ProjectRestoreMetadata : IEquatable<ProjectRestoreMetadata> 206return Equals(obj as ProjectRestoreMetadata); 209public bool Equals(ProjectRestoreMetadata other) 267public virtual ProjectRestoreMetadata Clone() 269var clone = new ProjectRestoreMetadata(); 274protected void FillClone(ProjectRestoreMetadata clone)