Skip to content

[Bug]: Sln-based graph builds with non-built projects with solution dependencies throws #9500

@dfederm

Description

@dfederm

Issue Description

When doing a sln-based graph build and a project is a) not configured to build in the current configuration and b) has solution dependencies, it blows up.

Microsoft.Build.Framework.InternalErrorException: 'MSB0001: Internal MSBuild Error: nodes should include solution projects'

This is being thrown from GraphBuilder.AddEdgesFromSolution because all solutionDependencies are enumerated, even for projects which are filtered out.

Steps to Reproduce

See description

Expected Behavior

See description

Actual Behavior

See description

Analysis

No response

Versions & Configurations

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions