Skip to content

BuildCheck suggestion: Evaluation time Item points to the output of a project #11247

Open
@JanKrivanek

Description

@JanKrivanek

Context

Inspired by #6198 and https://github.com/benvillalobos/msbuildism/tree/main/including-generated-files

When adding an evaluation time item update/include that is attempting to point to build execution time produced files - such item can either plainly not work as intended or worse behave differently based on build order leading to possible undeterministic behavior of the build

Goal

Implement a Check with the following rule: items updates/include happening during evaluation time are not allowed to reference outputs or intermediate outputs of projects that are part of the build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: BuildCheckBuildCheck SuggestionSuggestion for a built in MSBuild analyzer. Label should be applied together with 'Area: BuildCheck'triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions