Skip to content

ProjectGraph does not load added projects #12064

@tmat

Description

@tmat

Issue Description

Repro:

  1. Create ProjectGraph instance
  2. Add ProjectReference to a new project
  3. Create another ProjectGraph instance

The second instance does not include the new project.

Steps to Reproduce

Unzip Repro.zip,
update path to SDK in Program.cs: MSBuildLocator.RegisterMSBuildPath(@"C:\Program Files\dotnet\sdk\9.0.301"); if needed and dotnet run from Repro directory.

Expected Behavior

Loaded projects:
  pp\App.csproj
Loaded projects:
  App\App.csproj
  Lib\Lib.csproj

Actual Behavior

Loaded projects:
  pp\App.csproj
Loaded projects:
  App\App.csproj

Analysis

No response

Versions & Configurations

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: Static GraphIssues with -graph, -isolate, and the related APIs.Partner requestPriority:2Work that is important, but not critical for the releasetriaged

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions