Skip to content

Commit cb70baa

Browse files
Use .Net Core task to install .Net 6
1 parent 67c81cc commit cb70baa

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

azure-pipelines.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ steps:
3838
env:
3939
BuildSourceBranch: $(Build.SourceBranch)
4040

41+
- task: UseDotNet@2
42+
displayName: 'Install .NET 6'
43+
inputs:
44+
version: 6.0.x
45+
4146
- pwsh: ./build.ps1 -NoBuild -Bootstrap
4247
displayName: 'Running ./build.ps1 -NoBuild -Bootstrap'
4348

@@ -58,17 +63,6 @@ steps:
5863
- pwsh: ./build.ps1 -NoBuild -Test
5964
displayName: 'Running UnitTest'
6065

61-
- pwsh: |
62-
Invoke-WebRequest 'https://raw.githubusercontent.com/dotnet/cli/master/scripts/obtain/dotnet-install.ps1' -OutFile 'dotnet-install.ps1'
63-
./dotnet-install.ps1 -InstallDir "$env:ProgramFiles/dotnet" -Version "6.0.100" -Channel 'release'
64-
displayName: 'Install the .Net version used by the Core Tools for Windows'
65-
condition: eq( variables['Agent.OS'], 'Windows_NT' )
66-
67-
- bash: |
68-
curl -sSL https://raw.githubusercontent.com/dotnet/cli/master/scripts/obtain/dotnet-install.sh | bash /dev/stdin -v '6.0.100' -c 'release' --install-dir /usr/share/dotnet
69-
displayName: 'Install the .Net version used by the Core Tools for Linux'
70-
condition: eq( variables['Agent.OS'], 'Linux' )
71-
7266
- pwsh: ./test/E2E/Start-E2ETest.ps1
7367
env:
7468
AzureWebJobsStorage: $(AzureWebJobsStorage)

0 commit comments

Comments
 (0)