Skip to content

Commit c094f8f

Browse files
authored
Stop using /WarnAsError in source-build CI (#6867)
1 parent 0b6f154 commit c094f8f

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

eng/dotnet-build/build.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ param (
99
[switch][Alias('nobl')]$excludeCIBinarylog,
1010
[switch][Alias('pb')]$productBuild,
1111
[switch]$fromVMR,
12-
[bool]$warnAsError = $true,
1312
[bool]$nodeReuse = $true,
1413
[Parameter(ValueFromRemainingArguments = $true)][string[]]$properties
1514
)
@@ -44,4 +43,4 @@ catch {
4443
ExitWithExitCode 1
4544
}
4645

47-
ExitWithExitCode 0
46+
ExitWithExitCode 0

eng/dotnet-build/build.sh

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ source_build=false
1414
product_build=false
1515
from_vmr=false
1616
ci=false
17-
warn_as_error=true
1817
node_reuse=true
1918
binary_log=false
2019

@@ -58,10 +57,6 @@ while [[ $# > 0 ]]; do
5857
--from-vmr|--fromvmr)
5958
from_vmr=true
6059
;;
61-
--warnaserror)
62-
warn_as_error=$2
63-
shift
64-
;;
6560
--nodereuse)
6661
node_reuse=$2
6762
shift
@@ -133,9 +128,4 @@ if [[ "$ci" == true ]]; then
133128
node_reuse=false
134129
fi
135130

136-
local warnaserror_switch=""
137-
if [[ $warn_as_error == true ]]; then
138-
warnaserror_switch="/warnaserror"
139-
fi
140-
141-
"$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[@]}"}
131+
"$DOTNET" msbuild /m /nologo /clp:Summary /v:$verbosity /nr:$node_reuse /p:ContinuousIntegrationBuild=$ci $bl ${dotnetArguments[@]+"${dotnetArguments[@]}"} ${args[@]+"${args[@]}"}

0 commit comments

Comments
 (0)