diff --git a/build-test.cmd b/build-test.cmd
index 242c39e70d6d..af9d182a548d 100644
--- a/build-test.cmd
+++ b/build-test.cmd
@@ -107,7 +107,10 @@ if [!processedArgs!]==[] (
:ArgsDone
@REM Special handling for -priority=N argument.
-if %__Priority% GTR 0 (set "__PriorityArg=-priority=%__Priority%")
+if %__Priority% GTR 0 (
+ set "__PriorityArg=-priority=%__Priority%"
+ set "__PriorityMsbuildArg=/p:CLRTestPriorityToBuild=%__Priority%"
+)
if defined __BuildAgainstPackagesArg (
if not defined __RuntimeID (
@@ -120,7 +123,7 @@ if defined __BuildAgainstPackagesArg (
set __RunArgs=-BuildOS=%__BuildOS% -BuildType=%__BuildType% -BuildArch=%__BuildArch%
REM As we move from buildtools to arcade, __RunArgs should be replaced with __msbuildArgs
-set __msbuildArgs=/p:__BuildOS=%__BuildOS% /p:__BuildType=%__BuildType% /p:__BuildArch=%__BuildArch%
+set __msbuildArgs=/p:__BuildOS=%__BuildOS% /p:__BuildType=%__BuildType% /p:__BuildArch=%__BuildArch% /nologo /verbosity:minimal /clp:Summary
echo %__MsgPrefix%Commencing CoreCLR test build
@@ -317,10 +320,9 @@ for /l %%G in (1, 1, %__BuildLoopCount%) do (
set __MsbuildLog=/flp:Verbosity=normal;LogFile="%__BuildLog%";Append=!__AppendToLog!
set __MsbuildWrn=/flp1:WarningsOnly;LogFile="%__BuildWrn%";Append=!__AppendToLog!
set __MsbuildErr=/flp2:ErrorsOnly;LogFile="%__BuildErr%";Append=!__AppendToLog!
- set __Logging=-MsBuildLog=!__MsbuildLog! -MsBuildWrn=!__MsbuildWrn! -MsBuildErr=!__MsbuildErr!
set TestBuildSlice=%%G
- call "%__ProjectDir%\run.cmd" build -Project=%__ProjectDir%\tests\build.proj !__Logging! %__RunArgs% %__BuildAgainstPackagesArg% %__PriorityArg% %__UnprocessedBuildArgs%
+ call %__DotnetHost% msbuild %__ProjectDir%\tests\build.proj !__MsbuildLog! !__MsbuildWrn! !__MsbuildErr! %__msbuildArgs% %__BuildAgainstPackagesMsbuildArg% !__PriorityMsbuildArg! %__PassThroughArg% %__UnprocessedBuildArgs%
if errorlevel 1 (
echo %__MsgPrefix%Error: build failed. Refer to the build log files for details:
diff --git a/tests/build.proj b/tests/build.proj
index 1235c17cc7b8..0247cb8c68ae 100644
--- a/tests/build.proj
+++ b/tests/build.proj
@@ -51,8 +51,8 @@
-
-
+
+
diff --git a/tests/dir.sdkbuild.props b/tests/dir.sdkbuild.props
index c4cc31ec9f90..bc5bed9b3fbf 100644
--- a/tests/dir.sdkbuild.props
+++ b/tests/dir.sdkbuild.props
@@ -10,6 +10,7 @@
$(MicrosoftNETCoreAppPackageVersion)
false
false
+ AnyCPU
99.0
diff --git a/tests/src/dir.props b/tests/src/dir.props
index 27300734357f..c5cc702882df 100644
--- a/tests/src/dir.props
+++ b/tests/src/dir.props
@@ -1,7 +1,7 @@
-
+
@@ -37,7 +37,7 @@
$(__TestRootDir)
$(BaseOutputPath)\$(OSPlatformConfig)\
$(BaseOutputPathWithConfig)
- $(ProjectDir)\..\bin\tests\obj\$(OSPlatformConfig)\Managed\
+ $(ProjectDir)..\bin\tests\obj\$(OSPlatformConfig)\Managed\
$(__ManagedTestIntermediatesDir)\
<__NativeTestIntermediatesDir Condition="'$(__NativeTestIntermediatesDir)' == ''">$([System.IO.Path]::GetFullPath($(BaseOutputPathWithConfig)..\obj\$(BuildOS).$(Platform).$(Configuration)\Native\))
$(MSBuildProjectName)\