Fix format job; build with the same dotnet CLI that jitutils uses (dotnet/coreclr...
authorBruce Forstall <brucefo@microsoft.com>
Thu, 14 Nov 2019 02:38:59 +0000 (18:38 -0800)
committerGitHub <noreply@github.com>
Thu, 14 Nov 2019 02:38:59 +0000 (18:38 -0800)
Commit migrated from https://github.com/dotnet/coreclr/commit/0dd1f6cb8c0267f214ace5704ffef7a4a8d055eb

eng/pipelines/coreclr/templates/format-job.yml

index 30e9034..c33d212 100644 (file)
@@ -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: