From c8480f5058ddaf203460befc6b8f8f26daa36ba0 Mon Sep 17 00:00:00 2001 From: Bruce Forstall Date: Fri, 3 Aug 2018 17:54:30 -0700 Subject: [PATCH] Revert "Build managed tests with dotnet (#19254)" This reverts commit 101baee1010eaad47cd7afd1e041a7f422aefa78. --- build-test.cmd | 9 +++------ tests/build.proj | 4 ++-- tests/dir.sdkbuild.props | 1 - tests/src/dir.props | 4 ++-- 4 files changed, 7 insertions(+), 11 deletions(-) diff --git a/build-test.cmd b/build-test.cmd index b278996676f6..38c97b59d035 100644 --- a/build-test.cmd +++ b/build-test.cmd @@ -104,10 +104,7 @@ if [!processedArgs!]==[] ( :ArgsDone @REM Special handling for -priority=N argument. -if %__Priority% GTR 0 ( - set "__PriorityArg=-priority=%__Priority%" - set "__PriorityMsbuildArg=/p:priority=%__Priority%" -) +if %__Priority% GTR 0 (set "__PriorityArg=-priority=%__Priority%") if defined __BuildAgainstPackagesArg ( if not defined __RuntimeID ( @@ -120,7 +117,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% /nologo /verbosity:minimal /clp:Summary +set __msbuildArgs=/p:__BuildOS=%__BuildOS% /p:__BuildType=%__BuildType% /p:__BuildArch=%__BuildArch% echo %__MsgPrefix%Commencing CoreCLR repo test build @@ -302,7 +299,7 @@ for /l %%G in (1, 1, %__BuildLoopCount%) do ( set __msbuildErr=/flp2:ErrorsOnly;LogFile="%__BuildErr%";Append=!__AppendToLog! set TestBuildSlice=%%G - call %__DotnetHost% msbuild %__ProjectDir%\tests\build.proj !__msbuildLog! !__msbuildWrn! !__msbuildErr! %__msbuildArgs% %__BuildAgainstPackagesMsbuildArg% %__PriorityMsbuildArg% %__PassThroughArg% %__unprocessedBuildArgs% + call "%__ProjectDir%\run.cmd" build -Project=%__ProjectDir%\tests\build.proj -MsBuildLog=!__msbuildLog! -MsBuildWrn=!__msbuildWrn! -MsBuildErr=!__msbuildErr! %__RunArgs% %__BuildAgainstPackagesArg% %__PriorityArg% %__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 6bdc8690bfa0..a421b130b605 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 bc5bed9b3fbf..c4cc31ec9f90 100644 --- a/tests/dir.sdkbuild.props +++ b/tests/dir.sdkbuild.props @@ -10,7 +10,6 @@ $(MicrosoftNETCoreAppPackageVersion) false false - AnyCPU 99.0 diff --git a/tests/src/dir.props b/tests/src/dir.props index c5cc702882df..27300734357f 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)\