diff --git a/eng/dotnet-build/build.ps1 b/eng/dotnet-build/build.ps1 index 1a21a13fb9c..0502e3195ea 100644 --- a/eng/dotnet-build/build.ps1 +++ b/eng/dotnet-build/build.ps1 @@ -9,7 +9,6 @@ param ( [switch][Alias('nobl')]$excludeCIBinarylog, [switch][Alias('pb')]$productBuild, [switch]$fromVMR, - [bool]$warnAsError = $true, [bool]$nodeReuse = $true, [Parameter(ValueFromRemainingArguments = $true)][string[]]$properties ) @@ -44,4 +43,4 @@ catch { ExitWithExitCode 1 } -ExitWithExitCode 0 \ No newline at end of file +ExitWithExitCode 0 diff --git a/eng/dotnet-build/build.sh b/eng/dotnet-build/build.sh index 907407db1fc..8fd8412537e 100755 --- a/eng/dotnet-build/build.sh +++ b/eng/dotnet-build/build.sh @@ -14,7 +14,6 @@ source_build=false product_build=false from_vmr=false ci=false -warn_as_error=true node_reuse=true binary_log=false @@ -58,10 +57,6 @@ while [[ $# > 0 ]]; do --from-vmr|--fromvmr) from_vmr=true ;; - --warnaserror) - warn_as_error=$2 - shift - ;; --nodereuse) node_reuse=$2 shift @@ -133,9 +128,4 @@ if [[ "$ci" == true ]]; then node_reuse=false fi -local warnaserror_switch="" -if [[ $warn_as_error == true ]]; then - warnaserror_switch="/warnaserror" -fi - -"$DOTNET" msbuild /m /nologo /clp:Summary /v:$verbosity /nr:$node_reuse $warnaserror_switch /p:TreatWarningsAsErrors=$warn_as_error /p:ContinuousIntegrationBuild=$ci $bl ${dotnetArguments[@]+"${dotnetArguments[@]}"} ${args[@]+"${args[@]}"} +"$DOTNET" msbuild /m /nologo /clp:Summary /v:$verbosity /nr:$node_reuse /p:ContinuousIntegrationBuild=$ci $bl ${dotnetArguments[@]+"${dotnetArguments[@]}"} ${args[@]+"${args[@]}"}