[BuildCheck Suggestion]: Enable static graph
- 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.