File tree Expand file tree Collapse file tree 1 file changed +23
-2
lines changed
eng/common/pipelines/templates/jobs Expand file tree Collapse file tree 1 file changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -112,8 +112,29 @@ jobs:
112
112
- template : /eng/common/pipelines/templates/steps/verify-agent-os.yml
113
113
parameters :
114
114
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
117
138
118
139
- ${{ parameters.InstallLanguageSteps }}
119
140
You can’t perform that action at this time.
0 commit comments