dotnet / dotnet/msbuild

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

Open
#11,247 1 comment 0 reactions 0 assignees View on GitHub
Area: BuildCheck BuildCheck Suggestion triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

### Context

Inspired by https://github.com/dotnet/msbuild/issues/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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.