3 instantiations of ProjectGraph
Microsoft.Build (1)
BackEnd\BuildManager\BuildManager.cs (1)
2250projectGraph = new ProjectGraph(
Microsoft.DotNet.HotReload.Watch (1)
Build\ProjectGraphFactory.cs (1)
63new ProjectGraph(entryPoints, _collection, (path, globalProperties, collection) => CreateProjectInstance(path, globalProperties, collection, virtualProjectTargetFramework, logger), cancellationToken),
NuGet.Build.Tasks.Console (1)
MSBuildStaticGraphRestore.cs (1)
1306ProjectGraph projectGraph = new ProjectGraph(entryProjects, projectCollection, (path, properties, collection) =>
32 references to ProjectGraph
dotnet-watch (1)
Watch\MsBuildFileSetFactory.cs (1)
17/// Consider replacing with <see cref="Build.Graph.ProjectGraph"/> traversal (https://github.com/dotnet/sdk/issues/40214).
Microsoft.Build (23)
BackEnd\BuildManager\BuildManager.cs (3)
2247var projectGraph = submission.BuildRequestData.ProjectGraph; 2326static void DumpGraph(ProjectGraph graph, IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>>? targetList = null) 2341ProjectGraph projectGraph,
BackEnd\Components\ProjectCache\CacheContext.cs (3)
21public ProjectGraph? Graph { get; } 30ProjectGraph? graph = null, 40ProjectGraph? graph = null,
BackEnd\Components\ProjectCache\Experimental\CacheContext.cs (3)
23public ProjectGraph? Graph { get; } 32ProjectGraph? graph = null, 42ProjectGraph? graph = null,
BackEnd\Components\ProjectCache\ProjectCacheService.cs (3)
105ProjectGraph projectGraph, 166ProjectGraph? projectGraph, 202ProjectGraph? projectGraph,
Graph\GraphBuilder.cs (2)
52private readonly ProjectGraph.ProjectInstanceFactoryFunc _projectInstanceFactory; 68ProjectGraph.ProjectInstanceFactoryFunc projectInstanceFactory,
Graph\GraphBuildRequestData.cs (4)
33public GraphBuildRequestData(ProjectGraph projectGraph, ICollection<string> targetsToBuild) 44public GraphBuildRequestData(ProjectGraph projectGraph, ICollection<string> targetsToBuild, HostServices? hostServices) 56public GraphBuildRequestData(ProjectGraph projectGraph, ICollection<string> targetsToBuild, HostServices? hostServices, BuildRequestDataFlags flags) 181public ProjectGraph? ProjectGraph { get; }
Graph\ProjectGraphOptions.cs (4)
10/// Represents the mode to use when constructing a <see cref="ProjectGraph"/>. 26/// Represents options to use when constructing a <see cref="ProjectGraph" />. 51/// An optional <see cref="ProjectGraph.ProjectInstanceFactoryFunc" /> to use when evaluating individual projects in the graph. 53public ProjectGraph.ProjectInstanceFactoryFunc? ProjectInstanceFactoryFunc { get; init; }
Graph\ProjectInterpretation.cs (1)
75public IEnumerable<ReferenceInfo> GetReferences(ProjectGraphNode projectGraphNode, ProjectCollection projectCollection, ProjectGraph.ProjectInstanceFactoryFunc projectInstanceFactory, ProjectGraphMode graphMode)
Microsoft.DotNet.HotReload.Watch (7)
Build\EvaluationResult.cs (1)
135internal static IEnumerable<BuildRequest<object?>> CreateDesignTimeBuildRequests(ProjectGraph graph, string? mainProjectTargetFramework, bool suppressStaticWebAssets)
Build\FilePathExclusions.cs (1)
16public static FilePathExclusions Create(ProjectGraph projectGraph)
Build\LoadedProjectGraph.cs (2)
12internal sealed class LoadedProjectGraph(ProjectGraph graph, ProjectCollection collection, ILogger logger, GlobalOptions globalOptions, EnvironmentOptions environmentOptions) 28public ProjectGraph Graph => graph;
HotReload\ManagedCodeWorkspace.cs (3)
76public async ValueTask StartSessionAsync(ProjectGraph graph, CancellationToken cancellationToken) 85public async Task<Solution> UpdateProjectGraphAsync(ProjectGraph projectGraph, CancellationToken cancellationToken) 94private static ImmutableDictionary<string, ImmutableArray<ProjectInstance>> CreateProjectInstanceMap(ProjectGraph graph)
NuGet.Build.Tasks.Console (1)
MSBuildStaticGraphRestore.cs (1)
1306ProjectGraph projectGraph = new ProjectGraph(entryProjects, projectCollection, (path, properties, collection) =>