3 instantiations of ProjectGraph
Microsoft.Build (1)
BackEnd\BuildManager\BuildManager.cs (1)
2181
projectGraph = new
ProjectGraph
(
Microsoft.DotNet.HotReload.Watch (1)
Build\ProjectGraphFactory.cs (1)
62
new
ProjectGraph
(entryPoints, _collection, (path, globalProperties, collection) => CreateProjectInstance(path, globalProperties, collection, virtualProjectTargetFramework, logger), cancellationToken),
NuGet.Build.Tasks.Console (1)
MSBuildStaticGraphRestore.cs (1)
1276
ProjectGraph 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)
2178
var
projectGraph = submission.BuildRequestData.ProjectGraph;
2257
static void DumpGraph(
ProjectGraph
graph, IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>>? targetList = null)
2271
ProjectGraph
projectGraph,
BackEnd\Components\ProjectCache\CacheContext.cs (3)
21
public
ProjectGraph
? Graph { get; }
30
ProjectGraph
? graph = null,
40
ProjectGraph
? graph = null,
BackEnd\Components\ProjectCache\Experimental\CacheContext.cs (3)
23
public
ProjectGraph
? Graph { get; }
32
ProjectGraph
? graph = null,
42
ProjectGraph
? graph = null,
BackEnd\Components\ProjectCache\ProjectCacheService.cs (3)
103
ProjectGraph
projectGraph,
162
ProjectGraph
? projectGraph,
197
ProjectGraph
? projectGraph,
Graph\GraphBuilder.cs (2)
52
private readonly
ProjectGraph
.ProjectInstanceFactoryFunc _projectInstanceFactory;
68
ProjectGraph
.ProjectInstanceFactoryFunc projectInstanceFactory,
Graph\GraphBuildRequestData.cs (4)
33
public GraphBuildRequestData(
ProjectGraph
projectGraph, ICollection<string> targetsToBuild)
44
public GraphBuildRequestData(
ProjectGraph
projectGraph, ICollection<string> targetsToBuild, HostServices? hostServices)
56
public GraphBuildRequestData(
ProjectGraph
projectGraph, ICollection<string> targetsToBuild, HostServices? hostServices, BuildRequestDataFlags flags)
181
public
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.
53
public
ProjectGraph
.ProjectInstanceFactoryFunc? ProjectInstanceFactoryFunc { get; init; }
Graph\ProjectInterpretation.cs (1)
75
public IEnumerable<ReferenceInfo> GetReferences(ProjectGraphNode projectGraphNode, ProjectCollection projectCollection,
ProjectGraph
.ProjectInstanceFactoryFunc projectInstanceFactory, ProjectGraphMode graphMode)
Microsoft.DotNet.HotReload.Watch (7)
Build\EvaluationResult.cs (1)
135
internal static IEnumerable<BuildRequest<object?>> CreateDesignTimeBuildRequests(
ProjectGraph
graph, string? mainProjectTargetFramework, bool suppressStaticWebAssets)
Build\FilePathExclusions.cs (1)
16
public static FilePathExclusions Create(
ProjectGraph
projectGraph)
Build\LoadedProjectGraph.cs (2)
11
internal sealed class LoadedProjectGraph(
ProjectGraph
graph, ProjectCollection collection, ILogger logger, GlobalOptions globalOptions, EnvironmentOptions environmentOptions)
27
public
ProjectGraph
Graph => graph;
HotReload\CompilationHandler.cs (3)
99
public async ValueTask StartSessionAsync(
ProjectGraph
graph, CancellationToken cancellationToken)
1008
private static ImmutableDictionary<string, ImmutableArray<ProjectInstance>> CreateProjectInstanceMap(
ProjectGraph
graph)
1015
public async Task<Solution> UpdateProjectGraphAsync(
ProjectGraph
projectGraph, CancellationToken cancellationToken)
NuGet.Build.Tasks.Console (1)
MSBuildStaticGraphRestore.cs (1)
1276
ProjectGraph
projectGraph = new ProjectGraph(entryProjects, projectCollection, (path, properties, collection) =>