diff --git a/.editorconfig b/.editorconfig index 174e95a44f8..5c1192ae3ac 100644 --- a/.editorconfig +++ b/.editorconfig @@ -681,4 +681,18 @@ dotnet_analyzer_diagnostic.severity = none insert_final_newline = false [test/**/{Approvals,Snapshots}/**] -trim_trailing_whitespace = false \ No newline at end of file +trim_trailing_whitespace = false + + # Build Checks +[*.{csproj,vbproj,proj,nativeproj,locproj}] +build_check.BC0101.Severity=suggestion +build_check.BC0102.Severity=suggestion +build_check.BC0103.Severity=suggestion +build_check.BC0104.Severity=suggestion +build_check.BC0105.Severity=suggestion +build_check.BC0106.Severity=suggestion +build_check.BC0107.Severity=suggestion +build_check.BC0201.Severity=suggestion +build_check.BC0202.Severity=suggestion +build_check.BC0203.Severity=suggestion + diff --git a/eng/common/build.ps1 b/eng/common/build.ps1 index 438f9920c43..5c0baf38fba 100644 --- a/eng/common/build.ps1 +++ b/eng/common/build.ps1 @@ -113,6 +113,7 @@ function Build { MSBuild $toolsetBuildProj ` $bl ` $platformArg ` + /check ` /p:Configuration=$configuration ` /p:RepoRoot=$RepoRoot ` /p:Restore=$restore ` diff --git a/eng/common/build.sh b/eng/common/build.sh index 483647daf18..b22472ec590 100755 --- a/eng/common/build.sh +++ b/eng/common/build.sh @@ -226,6 +226,7 @@ function Build { MSBuild $_InitializeToolset \ $bl \ + /check \ /p:Configuration=$configuration \ /p:RepoRoot="$repo_root" \ /p:Restore=$restore \