4 instantiations of ProjectGraph
Microsoft.Build (1)
BackEnd\BuildManager\BuildManager.cs (1)
2267
projectGraph = new
ProjectGraph
(
Microsoft.DotNet.HotReload.Watch (1)
Build\ProjectGraphFactory.cs (1)
63
new
ProjectGraph
(entryPoints, _collection, (path, globalProperties, collection) => CreateProjectInstance(path, globalProperties, collection, virtualProjectTargetFramework, logger), cancellationToken),
NuGet.Build.Tasks.Console (1)
MSBuildStaticGraphRestore.cs (1)
1306
ProjectGraph projectGraph = new
ProjectGraph
(entryProjects, projectCollection, (path, properties, collection) =>
SelectTests (1)
GraphAffectedProjects.cs (1)
231
return new
ProjectGraph
(solutionPath, globalProperties);
35 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)
2264
var
projectGraph = submission.BuildRequestData.ProjectGraph;
2343
static void DumpGraph(
ProjectGraph
graph, IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>>? targetList = null)
2358
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)
105
ProjectGraph
projectGraph,
166
ProjectGraph
? projectGraph,
202
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)
12
internal sealed class LoadedProjectGraph(
ProjectGraph
graph, ProjectCollection collection, ILogger logger, GlobalOptions globalOptions, EnvironmentOptions environmentOptions)
28
public
ProjectGraph
Graph => graph;
HotReload\ManagedCodeWorkspace.cs (3)
76
public async ValueTask StartSessionAsync(
ProjectGraph
graph, CancellationToken cancellationToken)
85
public async Task<Solution> UpdateProjectGraphAsync(
ProjectGraph
projectGraph, CancellationToken cancellationToken)
94
private static ImmutableDictionary<string, ImmutableArray<ProjectInstance>> CreateProjectInstanceMap(
ProjectGraph
graph)
NuGet.Build.Tasks.Console (1)
MSBuildStaticGraphRestore.cs (1)
1306
ProjectGraph
projectGraph = new ProjectGraph(entryProjects, projectCollection, (path, properties, collection) =>
SelectTests (3)
GraphAffectedProjects.cs (3)
52
/// files, using a static MSBuild <see cref="
ProjectGraph
"/> built from <c>Aspire.slnx</c> at the PR
141
var
graph = BuildGraph(repoRoot, solutionPath);
217
private static
ProjectGraph
BuildGraph(string repoRoot, string solutionPath)