Skip to content

Commit 3ffd776

Browse files
Sync eng/common directory with azure-sdk-tools for PR 11336 (#46152)
* Install .NET from tools repo global.json * Set workingDirectory to tools root * use exact same install steps as tools repo * revert formatting * formatting --------- Co-authored-by: Mike Harder <[email protected]>
1 parent 7f83e9a commit 3ffd776

File tree

1 file changed

+23
-2
lines changed
  • eng/common/pipelines/templates/jobs

1 file changed

+23
-2
lines changed

eng/common/pipelines/templates/jobs/perf.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,29 @@ jobs:
112112
- template: /eng/common/pipelines/templates/steps/verify-agent-os.yml
113113
parameters:
114114
AgentImage: $(OSVmImage)
115-
116-
- template: /eng/pipelines/templates/steps/install-dotnet.yml
115+
116+
# Copied from eng/pipelines/templates/steps/install-dotnet.yml, but changed workingDirectory
117+
- task: UseDotNet@2 # About UseDotNet@2 task: https://learn.microsoft.com/azure/devops/pipelines/tasks/reference/use-dotnet-v2?view=azure-pipelines
118+
displayName: "Use .NET SDK from global.json"
119+
retryCountOnTaskFailure: 3
120+
inputs:
121+
useGlobalJson: true
122+
workingDirectory: azure-sdk-tools
123+
124+
# Copied from eng/pipelines/templates/steps/install-dotnet.yml, but changed workingDirectory
125+
- task: UseDotNet@2
126+
displayName: "Use .NET SDK 8.0.x"
127+
retryCountOnTaskFailure: 3
128+
inputs:
129+
# We must install sdk, not just runtime, as it is required by some of our tools, like test-proxy.
130+
# Specifically, test-proxy requires asp.net core runtime, which is installed only when sdk option
131+
# is selected, per: https://github.com/microsoft/azure-pipelines-tasks/issues/14405
132+
packageType: sdk
133+
version: 8.0.x
134+
# performMultiLevelLookup comes into play when given .NET executable target runtime is different
135+
# than the installed .NET SDK. Without this, such runtime would not be found.
136+
performMultiLevelLookup: true
137+
workingDirectory: azure-sdk-tools
117138

118139
- ${{ parameters.InstallLanguageSteps }}
119140

0 commit comments

Comments
 (0)