4 instantiations of ProjectGraph
Microsoft.Build (1)
BackEnd\BuildManager\BuildManager.cs (1)
2421projectGraph = 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) =>
SelectTests (1)
GraphAffectedProjects.cs (1)
254return new ProjectGraph(solutionPath, globalProperties);
36 references to ProjectGraph
Infrastructure.Tests (2)
TestTriggerMap\GraphAffectedProjectsTests.cs (1)
332var graph = GraphAffectedProjects.BuildGraph(
TestTriggerMap\TestTriggerMapTests.cs (1)
1740var graph = GraphAffectedProjects.BuildGraph(
Microsoft.Build (23)
BackEnd\BuildManager\BuildManager.cs (3)
2418var projectGraph = submission.BuildRequestData.ProjectGraph; 2497static void DumpGraph(ProjectGraph graph, IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>>? targetList = null) 2512ProjectGraph 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)
133internal 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) =>
SelectTests (3)
GraphAffectedProjects.cs (3)
57/// files, using a static MSBuild <see cref="ProjectGraph"/> built from <c>Aspire.slnx</c> at the PR 146var graph = BuildGraph(repoRoot, solutionPath); 232internal static ProjectGraph BuildGraph(string repoRoot, string solutionPath, IReadOnlyDictionary<string, string>? additionalGlobalProperties = null)