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)