From f72e3400a9845717fb42b508535cbdc3c0b575a8 Mon Sep 17 00:00:00 2001 From: Santiago Fernandez Madero Date: Wed, 20 Nov 2019 22:52:56 -0800 Subject: [PATCH] Enable warn as error in corelib Enable warn as error in corelib as the workaround was set for VS2017 which we no longer use since we moved to VS2019 and that's the recommended toolset. --- src/coreclr/build.cmd | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/coreclr/build.cmd b/src/coreclr/build.cmd index 4bfd8c0bb4d525..285c1391e25ed0 100644 --- a/src/coreclr/build.cmd +++ b/src/coreclr/build.cmd @@ -643,10 +643,8 @@ if %__BuildCoreLib% EQU 1 ( exit /b !errorlevel! ) - REM Disable warnAsError to work around VS bug (948084) where ucrt lib path is not set properly, resulting in CS1668 powershell -NoProfile -ExecutionPolicy ByPass -NoLogo -Command "%__RepoRootDir%\eng\common\msbuild.ps1" %__ArcadeScriptArgs%^ - %__ProjectDir%\src\build.proj -warnAsError:0^ - /nodeReuse:false /p:PortableBuild=true /maxcpucount^ + %__ProjectDir%\src\build.proj /nodeReuse:false /p:PortableBuild=true /maxcpucount^ '!__MsbuildLog!' '!__MsbuildWrn!' '!__MsbuildErr!' %__CommonMSBuildArgs% !__ExtraBuildArgs! %__UnprocessedBuildArgs% if not !errorlevel! == 0 ( echo %__ErrMsgPrefix%%__MsgPrefix%Error: Managed Product assemblies build failed. Refer to the build log files for details.