From aa301eef5ff3ef9d7b07b801c58d69afce69f08e Mon Sep 17 00:00:00 2001 From: Bruce Forstall Date: Wed, 13 Nov 2019 18:38:59 -0800 Subject: [PATCH] Fix format job; build with the same dotnet CLI that jitutils uses (dotnet/coreclr#27871) Commit migrated from https://github.com/dotnet/coreclr/commit/0dd1f6cb8c0267f214ace5704ffef7a4a8d055eb --- eng/pipelines/coreclr/templates/format-job.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/eng/pipelines/coreclr/templates/format-job.yml b/eng/pipelines/coreclr/templates/format-job.yml index 30e9034..c33d212 100644 --- a/eng/pipelines/coreclr/templates/format-job.yml +++ b/eng/pipelines/coreclr/templates/format-job.yml @@ -24,10 +24,14 @@ jobs: displayName: ${{ format('Formatting {0}{1} {2}', parameters.osGroup, parameters.osSubgroup, parameters.archType) }} helixType: 'format' steps: - - task: DotNetCoreInstaller@0 + - task: UseDotNet@2 + # This should match what jitutils YML uses to build. + displayName: 'Install .NET Core SDK' inputs: packageType: 'sdk' - version: '2.1.402' + version: '3.x' + includePreviewVersions: true + installationPath: $(Agent.ToolsDirectory)/dotnet - task: PythonScript@0 displayName: Run tests/scripts/format.py inputs: -- 2.7.4