15 instantiations of DependencyGraphSpec
aspire-managed (1)
NuGet\Commands\RestoreCommand.cs (1)
179
var dgSpec = new
DependencyGraphSpec
();
Microsoft.Build.NuGetSdkResolver (1)
RestoreRunnerEx.cs (1)
101
var dependencyGraphSpec = new
DependencyGraphSpec
();
NuGet.Build.Tasks.Console (2)
MSBuildStaticGraphRestore.cs (2)
870
return new
DependencyGraphSpec
();
875
var dependencyGraphSpec = new
DependencyGraphSpec
(isReadOnly: true);
NuGet.CommandLine.XPlat (1)
Commands\Package\Update\PackageUpdateCommandRunner.cs (1)
668
var updatedDgSpec = new
DependencyGraphSpec
();
NuGet.Commands (1)
RestoreCommand\Utility\MSBuildRestoreUtility.cs (1)
60
var graphSpec = new
DependencyGraphSpec
(readOnly);
NuGet.PackageManagement (1)
BuildIntegration\DependencyGraphRestoreUtility.cs (1)
247
var dgSpec = new
DependencyGraphSpec
();
NuGet.ProjectModel (8)
DependencyGraphSpec.cs (8)
116
var projectDependencyGraphSpec = new
DependencyGraphSpec
();
148
var dgSpec = new
DependencyGraphSpec
();
238
var newDgSpec = new
DependencyGraphSpec
();
255
var dgspec = new
DependencyGraphSpec
();
416
var newSpec = new
DependencyGraphSpec
();
428
var newSpec = new
DependencyGraphSpec
();
442
var newSpec = new
DependencyGraphSpec
();
460
var newSpec = new
DependencyGraphSpec
();
115 references to DependencyGraphSpec
aspire-managed (1)
NuGet\Commands\RestoreCommand.cs (1)
179
var
dgSpec = new DependencyGraphSpec();
Microsoft.Build.NuGetSdkResolver (1)
RestoreRunnerEx.cs (1)
101
var
dependencyGraphSpec = new DependencyGraphSpec();
NuGet.Build.Tasks (8)
BuildTasksUtility.cs (4)
43
public static void AddAllProjectsForRestore(
DependencyGraphSpec
spec)
119
DependencyGraphSpec
dependencyGraphSpec,
136
DependencyGraphSpec
dependencyGraphSpec,
279
FileUtility.Delete(Path.Combine(project.RestoreMetadata.OutputPath,
DependencyGraphSpec
.GetDGSpecFileName(Path.GetFileName(project.RestoreMetadata.ProjectPath))));
RestoreTask.cs (3)
176
var
dgFile = MSBuildRestoreUtility.GetDependencySpec(wrappedItems, readOnly: true);
247
private ITaskItem[] GetFilesToEmbedInBinlog(
DependencyGraphSpec
dependencyGraphSpec)
272
restoredProjectOutputPaths.Add(new TaskItem(Path.Combine(project.RestoreMetadata.OutputPath,
DependencyGraphSpec
.GetDGSpecFileName(Path.GetFileName(project.RestoreMetadata.ProjectPath)))));
WriteRestoreGraphTask.cs (1)
65
var
dgFile = MSBuildRestoreUtility.GetDependencySpec(wrappedItems);
NuGet.Build.Tasks.Console (10)
MSBuildStaticGraphRestore.cs (10)
108
var
dependencyGraphSpec = GetDependencyGraphSpec(entryProjectFilePath, globalProperties, interactive, binaryLoggerParameters, EnvironmentVariableWrapper.Instance);
116
static bool HasProjectToRestore(
DependencyGraphSpec
dgSpec, bool restorePackagesConfig)
194
var
dependencyGraphSpec = GetDependencyGraphSpec(entryProjectFilePath, globalProperties, interactive, binaryLoggerParameters, EnvironmentVariableWrapper.Instance);
786
/// Gets a <see cref="
DependencyGraphSpec
" /> for the specified project.
791
/// <returns>A <see cref="
DependencyGraphSpec
" /> for the specified project if they could be loaded, otherwise <code>null</code>.</returns>
792
private
DependencyGraphSpec
GetDependencyGraphSpec(string entryProjectPath, IDictionary<string, string> globalProperties, bool interactive, string binaryLoggerParameters, IEnvironmentVariableReader environmentVariableReader)
848
private
DependencyGraphSpec
GetDependencyGraphSpec<TProject>(
875
var
dependencyGraphSpec = new DependencyGraphSpec(isReadOnly: true);
1347
private void LogFilesToEmbedInBinlog(
DependencyGraphSpec
dependencyGraphSpec, IReadOnlyDictionary<string, string> options)
1372
LoggingQueue.Enqueue(new ConsoleOutLogEmbedInBinlog(Path.Combine(project.RestoreMetadata.OutputPath,
DependencyGraphSpec
.GetDGSpecFileName(Path.GetFileName(project.RestoreMetadata.ProjectPath)))));
NuGet.CommandLine.XPlat (24)
Commands\Package\Update\IPackageUpdateIO.cs (3)
28
DependencyGraphSpec
? GetDependencyGraphSpec(string project);
38
DependencyGraphSpec
dgSpec,
119
Task<LockFile> GetProjectAssetsFileAsync(
DependencyGraphSpec
dgSpec, string projectPath, ILogger logger, CancellationToken cancellationToken);
Commands\Package\Update\PackageUpdateCommandRunner.cs (8)
59
var
dgSpec = packageUpdateIO.GetDependencyGraphSpec(args.Project);
90
var
updatedDgSpec = GetUpdatedDependencyGraphSpec(dgSpec, projectPackageUpdates);
129
DependencyGraphSpec
dgSpec,
248
DependencyGraphSpec
dgSpec,
351
DependencyGraphSpec
dgSpec,
666
private static
DependencyGraphSpec
GetUpdatedDependencyGraphSpec(
DependencyGraphSpec
currentDgSpec, Dictionary<string, List<PackageUpdateResult>> projectPackageUpdates)
668
var
updatedDgSpec = new DependencyGraphSpec();
Commands\Package\Update\PackageUpdateIO.cs (7)
64
public
DependencyGraphSpec
? GetDependencyGraphSpec(string project)
74
DependencyGraphSpec
result =
DependencyGraphSpec
.Load(tempFile);
130
/// <inheritdoc cref="IPackageUpdateIO.PreviewUpdatePackageReferenceAsync(
DependencyGraphSpec
, ILogger, CancellationToken)"/>
132
DependencyGraphSpec
dgSpec,
449
/// <inheritdoc cref="IPackageUpdateIO.GetProjectAssetsFileAsync(
DependencyGraphSpec
, string, ILogger, CancellationToken)"/>
451
DependencyGraphSpec
dgSpec,
Commands\PackageReferenceCommands\AddPackageReferenceCommandRunner.cs (6)
69
var
dgSpec = ReadProjectDependencyGraph(packageReferenceArgs);
192
var
updatedDgSpec = dgSpec.WithReplacedSpec(updatedPackageSpec).WithoutRestores();
405
DependencyGraphSpec
dgSpec)
443
private static
DependencyGraphSpec
ReadProjectDependencyGraph(PackageReferenceArgs packageReferenceArgs)
445
DependencyGraphSpec
spec = null;
449
spec =
DependencyGraphSpec
.Load(packageReferenceArgs.DgFilePath);
NuGet.Commands (27)
RestoreCommand\RequestFactory\DependencyGraphFileRequestProvider.cs (2)
27
var
dgSpec =
DependencyGraphSpec
.Load(inputPath);
RestoreCommand\RequestFactory\DependencyGraphSpecRequestProvider.cs (7)
28
private readonly
DependencyGraphSpec
_dgFile;
35
DependencyGraphSpec
dgFile)
44
DependencyGraphSpec
dgFile,
59
private IReadOnlyList<RestoreSummaryRequest> GetRequestsFromItems(RestoreArgs restoreContext,
DependencyGraphSpec
dgFile)
99
DependencyGraphSpec
projectDependencyGraphSpec = dgFile.CreateFromClosure(projectNameToRestore, closure);
135
public static IEnumerable<ExternalProjectReference> GetExternalClosure(
DependencyGraphSpec
dgFile, string projectNameToRestore)
163
DependencyGraphSpec
projectDgSpec,
RestoreCommand\RestoreCommand.cs (1)
1462
var
noOpDgSpec = NoOpRestoreUtilities.GetNoOpDgSpec(_request);
RestoreCommand\RestoreRequest.cs (1)
54
public
DependencyGraphSpec
DependencyGraphSpec { get; set; }
RestoreCommand\RestoreResult.cs (2)
102
private readonly
DependencyGraphSpec
_dependencyGraphSpec;
121
DependencyGraphSpec
dependencyGraphSpec,
RestoreCommand\Utility\MSBuildRestoreUtility.cs (9)
36
/// Creates a <see cref="
DependencyGraphSpec
" /> from the specified MSBuild items.
39
public static
DependencyGraphSpec
GetDependencySpec(IEnumerable<IMSBuildItem> items)
44
/// Creates a <see cref="
DependencyGraphSpec
" /> from the specified MSBuild items.
47
/// <param name="readOnly"><see langword="true" /> to indicate that the <see cref="
DependencyGraphSpec
" /> is considered read-only and won't be changed, otherwise <see langword="false" />.</param>
48
public static
DependencyGraphSpec
GetDependencySpec(IEnumerable<IMSBuildItem> items, bool readOnly)
60
var
graphSpec = new DependencyGraphSpec(readOnly);
310
public static void RemoveMissingProjects(
DependencyGraphSpec
graphSpec)
332
public static void NormalizePathCasings(Dictionary<string, string> paths,
DependencyGraphSpec
graphSpec)
340
public static void NormalizePathCasings(IDictionary<string, string> paths,
DependencyGraphSpec
graphSpec)
RestoreCommand\Utility\NoOpRestoreUtilities.cs (3)
200
internal static
DependencyGraphSpec
GetNoOpDgSpec(RestoreRequest request)
204
var
dgSpec = request.DependencyGraphSpec.WithProjectClosure(request.DependencyGraphSpec.Restore.First());
233
var dgFileName =
DependencyGraphSpec
.GetDGSpecFileName(projFileName);
RestoreCommand\Utility\SpecValidationUtility.cs (2)
23
public static void ValidateDependencySpec(
DependencyGraphSpec
spec)
28
public static void ValidateDependencySpec(
DependencyGraphSpec
spec, HashSet<string> projectsToSkip, ILogger logger)
NuGet.PackageManagement (20)
BuildIntegration\BuildIntegratedRestoreUtility.cs (1)
113
DependencyGraphSpec
cache)
BuildIntegration\DependencyGraphRestoreUtility.cs (12)
35
DependencyGraphSpec
dgSpec,
65
DependencyGraphSpec
dgSpec,
127
var
dgFile = await GetSolutionRestoreSpec(solutionManager, context);
178
var
dgFile = await GetSolutionRestoreSpec(solutionManager, context);
214
DependencyGraphSpec
solutionDgSpec)
235
public static async Task<
DependencyGraphSpec
> GetSolutionRestoreSpec(
243
public static async Task<(
DependencyGraphSpec
dgSpec, IReadOnlyList<IAssetsLogMessage> additionalMessages)> GetSolutionRestoreSpecAndAdditionalMessages(
247
var
dgSpec = new DependencyGraphSpec();
278
var dgFileName =
DependencyGraphSpec
.GetDGSpecFileName(projFileName);
292
var
persistedDGSpec =
DependencyGraphSpec
.Load(persistedDGSpecPath);
321
DependencyGraphSpec
dgFile,
DependencyGraphCacheContext.cs (2)
31
public Dictionary<string,
DependencyGraphSpec
> DependencyGraphCache { get; set; } =
32
new Dictionary<string,
DependencyGraphSpec
>(StringComparer.Ordinal);
IDependencyGraphProject.cs (1)
13
/// Represents the interface necessary for adding a project to a <see cref="
DependencyGraphSpec
"/>-based restore.
NuGetPackageManager.cs (4)
50
private
DependencyGraphSpec
_buildIntegratedProjectsCache;
2432
var
dgFile = await DependencyGraphRestoreUtility.GetSolutionRestoreSpec(SolutionManager, referenceContext);
2434
var allSortedProjects =
DependencyGraphSpec
.SortPackagesByDependencyOrder(dgFile.Projects);
3451
var
dgSpecForParents = await DependencyGraphRestoreUtility.GetSolutionRestoreSpec(SolutionManager, referenceContext);
NuGet.ProjectModel (24)
DependencyGraphSpec.cs (21)
114
public
DependencyGraphSpec
WithProjectClosure(string projectUniqueName)
116
var
projectDependencyGraphSpec = new DependencyGraphSpec();
128
/// Creates a new <see cref="
DependencyGraphSpec
" /> from a project name and project closure.
132
/// <returns>A <see cref="
DependencyGraphSpec
" />.</returns>
136
public
DependencyGraphSpec
CreateFromClosure(string projectUniqueName, IReadOnlyList<PackageSpec> closure)
148
var
dgSpec = new DependencyGraphSpec();
230
public static
DependencyGraphSpec
Union(IEnumerable<
DependencyGraphSpec
> dgSpecs)
238
var
newDgSpec = new DependencyGraphSpec();
246
public static
DependencyGraphSpec
Load(string path)
255
var
dgspec = new DependencyGraphSpec();
295
private static void ParseRestoreSection(
DependencyGraphSpec
dgspec, ref Utf8JsonStreamReader jsonReader)
312
private static void ParseProjectsSection(
DependencyGraphSpec
dgspec, ref Utf8JsonStreamReader jsonReader, string path)
414
public
DependencyGraphSpec
WithoutRestores()
416
var
newSpec = new DependencyGraphSpec();
426
public
DependencyGraphSpec
WithReplacedSpec(PackageSpec project)
428
var
newSpec = new DependencyGraphSpec();
440
public
DependencyGraphSpec
WithPackageSpecs(IEnumerable<PackageSpec> packageSpecs)
442
var
newSpec = new DependencyGraphSpec();
458
public
DependencyGraphSpec
WithoutTools()
460
var
newSpec = new DependencyGraphSpec();
ProjectLockFile\PackagesLockFileUtilities.cs (3)
74
/// <param name="dgSpec">The <see cref="
DependencyGraphSpec
"/> for the new project defintion.</param>
78
public static LockFileValidationResult IsLockFileValid(
DependencyGraphSpec
dgSpec, PackagesLockFile nuGetLockFile)
470
private static (bool, string) HasP2PDependencyChanged(IEnumerable<LibraryDependency> newDependencies, IEnumerable<ProjectRestoreReference> projectRestoreReferences, IReadOnlyDictionary<string, PrunePackageReference> dependentProjectPackagesToPrune, IReadOnlyDictionary<string, PrunePackageReference> packagesToPrune, LockFileDependency projectDependency,
DependencyGraphSpec
dgSpec)