Skip to content

Should static graph respect MSBuild.SkipNonExistentProjects and MSBuild.SkipNonExistentTargets? #4252

@cdmihai

Description

@cdmihai

In msbuild, one can call targets which do not exist by setting SkipNonexistentTargets on the MSBuild task.
The static graph target protocol does not support this and will call the nonexistent targets which results in a build failure.

A possible implementation would be to support <ProjectReferenceTargets Include='Build' Targets='GetTargetFrameworks' SkipNonexistentTargets='true'> which would instruct the target propagation code to take out non existing targets.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: Static GraphIssues with -graph, -isolate, and the related APIs.triaged

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions