In order to unify the environment variable to detect whether a build is a CI build as simply CI (as is done already in GitHub Actions, Circle CI and GitLab), you just place this bit of MSBuild in every project's Directory.Build.props to make things consistent everywhere: