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 ac1ee8620cd..7e4d5209684 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 \