Skip to content

Commit 0e96d3d

Browse files
Add service connection for NugetAuthenticate (#778)
Add service connection conditionally Update "Install .NET SDK" action to use the contents of global.json to determine the version of the SDK to install
1 parent e216a05 commit 0e96d3d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

azure-pipelines/build.yml

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ steps:
44

55
- task: UseDotNet@2
66
displayName: Install .NET Core SDK
7+
inputs:
8+
packageType: sdk
9+
useGlobalJson: true
710

811
- ${{ if eq(variables['system.collectionId'], '011b8bdf-6d56-4f87-be0d-0092136884d9') }}:
912
- template: /azure-pipelines/azure-pipeline.microbuild.before.yml@self
@@ -13,6 +16,9 @@ steps:
1316

1417
- task: NuGetAuthenticate@1
1518
displayName: 'Authenticate with NuGet'
19+
inputs:
20+
${{ if eq(variables['system.collectionId'], '011b8bdf-6d56-4f87-be0d-0092136884d9') }}:
21+
nuGetServiceConnections: azure-public/readonly
1622

1723
- task: PowerShell@2
1824
displayName: 'dotnet restore'

0 commit comments

Comments
 (0)