dotnet / dotnet/msbuild

[BuildCheck Suggestion]: Enable static graph

Open
#10,489 0 comments 0 reactions 0 assignees View on GitHub
Area: BuildCheck backlog BuildCheck Suggestion Priority:3 triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

### Summary

MSBuild has the opt-in [static graph](https://github.com/dotnet/msbuild/blob/main/documentation/specs/static-graph.md) evaluation model.

It would make sense to add a BuildCheck to tell users to opt-in to this mode.

### Background and Motivation

The [static graph spec](https://github.com/dotnet/msbuild/blob/main/documentation/specs/static-graph.md) explains the benefits of the static graph model. It seems that the eventual desire is to move the ecosystem towards static graph evaluation, but that backwards compatibility prevents changing the default.

The BuildCheck provides a way to allow projects to migrate to static graph over time and gain momentum.

### Sample issue or antipattern that the check should be flagging

Any invocation of MSBuild without the `-graph` parameter could / should be flagged.

### Sample output

_No response_

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.