From 4b7bc55c09bfeaf11ee1bfeb67343d28a7c5fda0 Mon Sep 17 00:00:00 2001 From: Jackson Schuster <36744439+jtschuster@users.noreply.github.com> Date: Fri, 17 Jul 2026 18:00:01 -0700 Subject: [PATCH] Use eng\common\dotnet.cmd instead of .\dotnet.cmd --- .../templates/crossgen2-comparison-build-job.yml | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/eng/pipelines/coreclr/templates/crossgen2-comparison-build-job.yml b/eng/pipelines/coreclr/templates/crossgen2-comparison-build-job.yml index 70b45ba22ca276..4e55b89f5c7ef7 100644 --- a/eng/pipelines/coreclr/templates/crossgen2-comparison-build-job.yml +++ b/eng/pipelines/coreclr/templates/crossgen2-comparison-build-job.yml @@ -119,17 +119,6 @@ jobs: displayName: Create directories failOnStderr: true - # Pre-initialize the dotnet CLI so that sdk.txt is populated before the - # parallel crossgen2 fan-out. Without this, 236 parallel dotnet.cmd - # invocations race to create artifacts/toolset/sdk.txt, and some may - # read it before it exists, producing a "dotnet.exe not found" error. - - ${{ if ne(parameters.osGroup, 'windows') }}: - - script: $(Build.SourcesDirectory)/dotnet.sh --version - displayName: Pre-initialize dotnet CLI - - ${{ if eq(parameters.osGroup, 'windows') }}: - - script: $(Build.SourcesDirectory)\dotnet.cmd --version - displayName: Pre-initialize dotnet CLI - # Create baseline output on the host (x64) machine - task: PythonScript@0 displayName: Create cross-platform crossgen baseline @@ -151,7 +140,7 @@ jobs: arguments: crossgen_framework --crossgen $(crossgen2location) - --dotnet $(Build.SourcesDirectory)\dotnet.cmd + --dotnet $(Build.SourcesDirectory)\eng\common\dotnet.cmd --core_root $(workItemDirectory)\dlls --result_dir $(workItemDirectory)\log --target_os $(target_crossgen2_os)