浏览代码

use pipelines sdk install task for linux and osx.

Dan Walmsley 4 年之前
父节点
当前提交
ca4f95cc4f
共有 1 个文件被更改,包括 16 次插入8 次删除
  1. 16 8
      azure-pipelines.yml

+ 16 - 8
azure-pipelines.yml

@@ -3,11 +3,15 @@ jobs:
   pool:
     vmImage: 'ubuntu-20.04'
   steps:
-  - task: CmdLine@2
-    displayName: 'Download SDK'
+  - task: UseDotNet@2
+    displayName: 'Use .NET Core SDK 3.1.401'
     inputs:
-      script: |
-         ./get-sdk.sh
+      version: 3.1.401
+
+  - task: UseDotNet@2
+    displayName: 'Use .NET Core SDK 5.0.402'
+    inputs:
+      version: 5.0.402
   - task: CmdLine@2
     displayName: 'Run Build'
     inputs:
@@ -28,11 +32,15 @@ jobs:
   pool:
     vmImage: 'macOS-10.15'
   steps:
-  - task: CmdLine@2
-    displayName: 'Download SDK'
+  - task: UseDotNet@2
+    displayName: 'Use .NET Core SDK 3.1.401'
     inputs:
-      script: |
-         ./get-sdk.sh
+      version: 3.1.401
+
+  - task: UseDotNet@2
+    displayName: 'Use .NET Core SDK 5.0.402'
+    inputs:
+      version: 5.0.402
   - task: CmdLine@2
     displayName: 'Install Mono 5.18'
     inputs: