@@ -139,15 +139,10 @@ jobs:
139139 - pwsh : |
140140 .\package-pipeline.ps1 -buildNumber $(buildNumber)
141141 displayName: 'Executing build script'
142- - pwsh : |
143- Invoke-WebRequest 'https://raw.githubusercontent.com/dotnet/cli/master/scripts/obtain/dotnet-install.ps1' -OutFile 'dotnet-install.ps1'
144- ./dotnet-install.ps1 -InstallDir "$env:ProgramFiles/dotnet" -Version "6.0.100-rc.2.21505.57" -Channel 'release'
145- displayName: 'Install the .Net version used by the Core Tools for Windows'
146- condition: eq( variables['Agent.OS'], 'Windows_NT' )
147- - bash : |
148- curl -sSL https://raw.githubusercontent.com/dotnet/cli/master/scripts/obtain/dotnet-install.sh | bash /dev/stdin -v '6.0.100-rc.2.21505.57' -c 'release' --install-dir /usr/share/dotnet
149- displayName: 'Install the .Net version used by the Core Tools for Linux'
150- condition: eq( variables['Agent.OS'], 'Linux' )
142+ - task : UseDotNet@2
143+ displayName : ' Install .NET 6'
144+ inputs :
145+ version : 6.0.x
151146 - pwsh : | # Download JDK for later installation
152147 Invoke-WebRequest $(JDK_DOWNLOAD_LINK) -O "$(JAVA_VERSION).tar.gz"
153148 $current = get-location | select -ExpandProperty Path
@@ -180,14 +175,12 @@ jobs:
180175 - pwsh : |
181176 $currDir = Get-Location
182177 $Env:Path = $Env:Path+";$currDir/Azure.Functions.Cli"
183- ls $currDir/Azure.Functions.Cli
184178 func --version
185179 condition: eq( variables['Agent.OS'], 'Windows_NT' )
186180 displayName: 'Setup Core Tools - Windows'
187181 - bash : |
188182 chmod +x ./Azure.Functions.Cli/func
189183 chmod +x ./Azure.Functions.Cli/gozip
190- ls ./Azure.Functions.Cli
191184 export PATH=$PATH:./Azure.Functions.Cli
192185 func --version
193186 condition: eq( variables['Agent.OS'], 'Linux' )
0 commit comments