mirror of
https://github.com/PowerShell/PowerShell.git
synced 2024-11-30 13:25:29 +08:00
Add .NET install workaround for RTM (#13991)
This commit is contained in:
parent
05f274898d
commit
40549c3585
@ -34,6 +34,13 @@ jobs:
|
||||
displayName: 'Use .NET Core SDK from global.json'
|
||||
inputs:
|
||||
version: '$(SDKVersion)'
|
||||
condition: ne(variables['SDKVersion'], '5.0.100')
|
||||
|
||||
- pwsh: |
|
||||
Import-Module "$(Build.SourcesDirectory)/build.psm1" -Force
|
||||
Install-Dotnet -Version '5.0.100-rtm.20526.5'
|
||||
displayName: Install-DotNet
|
||||
condition: eq(variables['SDKVersion'], '5.0.100')
|
||||
|
||||
- task: DownloadBuildArtifacts@0
|
||||
displayName: 'Download PowerShell build artifacts'
|
||||
@ -92,6 +99,7 @@ jobs:
|
||||
- powershell: |
|
||||
Import-Module $env:BUILD_SOURCESDIRECTORY\build.psm1
|
||||
Import-Module $env:BUILD_SOURCESDIRECTORY\tools\packaging
|
||||
Find-Dotnet
|
||||
New-ILNugetPackage -PackagePath "$(PackagePath)" -PackageVersion "$(Version)" -WinFxdBinPath '$(winFxdPath)' -LinuxFxdBinPath '$(linuxFxdPath)' -GenAPIToolPath "$(GenAPIToolPath)"
|
||||
displayName: 'Create Nuget Package Folders'
|
||||
|
||||
@ -104,7 +112,7 @@ jobs:
|
||||
- powershell: |
|
||||
Import-Module $env:BUILD_SOURCESDIRECTORY\build.psm1
|
||||
Import-Module $env:BUILD_SOURCESDIRECTORY\tools\packaging
|
||||
|
||||
Find-Dotnet
|
||||
# Create unified package first
|
||||
New-GlobalToolNupkg -UnifiedPackage -LinuxBinPath "$(linuxFxdPath)" -WindowsBinPath "$(winFxdPath)" -WindowsDesktopBinPath "$(winFxdWinDesktopPath)" -PackageVersion "$(Version)" -DestinationPath "$(PackagePath)\globaltool"
|
||||
|
||||
|
@ -53,7 +53,8 @@ jobs:
|
||||
|
||||
## Install latest version from the channel
|
||||
|
||||
Install-Dotnet -Channel "$Channel" -Version $sdkVersion
|
||||
#Install-Dotnet -Channel "$Channel" -Version $sdkVersion
|
||||
Start-PSBootstrap
|
||||
|
||||
Write-Verbose -Message "Installing .NET SDK completed." -Verbose
|
||||
|
||||
|
@ -41,7 +41,8 @@ jobs:
|
||||
|
||||
## Install latest version from the channel
|
||||
|
||||
Install-Dotnet -Channel "$Channel" -Version $sdkVersion
|
||||
#Install-Dotnet -Channel "$Channel" -Version $sdkVersion
|
||||
Start-PSBootstrap
|
||||
|
||||
Write-Verbose -Message "Installing .NET SDK completed." -Verbose
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user