Update to latest .NET 6 GA build ` 6.0.100-rtm.21527.11` (#16309)
This commit is contained in:
parent
51e11aaedf
commit
52b6d89407
|
@ -97,10 +97,6 @@ stages:
|
|||
vmImage: macOS-latest
|
||||
steps:
|
||||
- pwsh: |
|
||||
# Remove old .NET SDKs
|
||||
if (Test-Path -Path $HOME/.dotnet) {
|
||||
Remove-Item $HOME/.dotnet -Recurse -Force
|
||||
}
|
||||
Import-Module .\tools\ci.psm1
|
||||
New-CodeCoverageAndTestPackage
|
||||
displayName: CodeCoverage and Test Package
|
||||
|
|
|
@ -11,38 +11,31 @@ jobs:
|
|||
displayName: ${{ parameters.displayName }}
|
||||
|
||||
steps:
|
||||
- powershell: |
|
||||
- pwsh: |
|
||||
Get-ChildItem -Path env:
|
||||
displayName: Capture Environment
|
||||
condition: succeededOrFailed()
|
||||
|
||||
- powershell: Write-Host "##vso[build.updatebuildnumber]$env:BUILD_SOURCEBRANCHNAME-$env:BUILD_SOURCEVERSION-$((get-date).ToString("yyyyMMddhhmmss"))"
|
||||
- pwsh: Write-Host "##vso[build.updatebuildnumber]$env:BUILD_SOURCEBRANCHNAME-$env:BUILD_SOURCEVERSION-$((get-date).ToString("yyyyMMddhhmmss"))"
|
||||
displayName: Set Build Name for Non-PR
|
||||
condition: ne(variables['Build.Reason'], 'PullRequest')
|
||||
|
||||
- ${{ if ne(variables['AzDevOpsFeed'], '') }}:
|
||||
- template: /tools/releaseBuild/azureDevOps/templates/insert-nuget-config-azfeed.yml
|
||||
|
||||
- pwsh: |
|
||||
if (Test-Path -Path $HOME/.dotnet) {
|
||||
Remove-Item $HOME/.dotnet -Recurse -Force
|
||||
}
|
||||
displayName: Remove Old .NET SDKs
|
||||
condition: succeededOrFailed()
|
||||
|
||||
- pwsh: |
|
||||
Import-Module .\tools\ci.psm1
|
||||
Invoke-CIInstall -SkipUser
|
||||
displayName: Bootstrap
|
||||
condition: succeeded()
|
||||
|
||||
- powershell: |
|
||||
- pwsh: |
|
||||
Import-Module .\tools\ci.psm1
|
||||
Invoke-CIBuild
|
||||
displayName: Build
|
||||
condition: succeeded()
|
||||
|
||||
- powershell: |
|
||||
- pwsh: |
|
||||
Import-Module .\tools\ci.psm1
|
||||
Restore-PSOptions
|
||||
Invoke-CIxUnit -SkipFailing
|
||||
|
|
|
@ -33,13 +33,6 @@ jobs:
|
|||
displayName: 'Capture Artifacts Directory'
|
||||
continueOnError: true
|
||||
|
||||
- pwsh: |
|
||||
if (Test-Path -Path $HOME/.dotnet) {
|
||||
Remove-Item $HOME/.dotnet -Recurse -Force
|
||||
}
|
||||
displayName: Remove Old .NET SDKs
|
||||
condition: succeededOrFailed()
|
||||
|
||||
- pwsh: |
|
||||
Import-Module .\tools\ci.psm1
|
||||
Invoke-CIInstall -SkipUser
|
||||
|
|
|
@ -1,13 +1,15 @@
|
|||
{
|
||||
"sdk": {
|
||||
"channel": "6.0.1xx-rc1",
|
||||
"channel": "6.0.1xx",
|
||||
"quality": "signed",
|
||||
"qualityFallback": "daily",
|
||||
"packageVersionPattern": "6.0.0-rc.1",
|
||||
"packageVersionPattern": "6.0.0",
|
||||
"sdkImageVersion": "6.0.100",
|
||||
"nextChannel": "6.0.1xx-rc1"
|
||||
"nextChannel": "6.0.1xx",
|
||||
"azureFeed": "https://dotnetstage.blob.core.windows.net/6-0-100-rtm-21527-11-public",
|
||||
"sdkImageOverride": "6.0.100-rtm.21527.11"
|
||||
},
|
||||
"internalfeed" : {
|
||||
"url": "https://pkgs.dev.azure.com/dnceng/public/_packaging/6.0.100-rc.1.21458.32-shipping/nuget/v2"
|
||||
"url": "https://pkgs.dev.azure.com/dnceng/public/_packaging/6.0.100-rtm.21527.11-shipping/nuget/v2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1990,6 +1990,9 @@
|
|||
<Component Id="cmp690BAC3241424F59B5D30DE0E846D03E">
|
||||
<File Id="filDBDCB9BFFF9F425B8CF7F7A5F05D42B1" KeyPath="yes" Source="$(var.ProductSourcePath)\cs\System.Private.ServiceModel.resources.dll" />
|
||||
</Component>
|
||||
<Component Id="cmp5B67AE2852E04C26970FD2016CA76E07">
|
||||
<File Id="fil42D10EBCB41B426BAFBF26BB053A9E84" KeyPath="yes" Source="$(var.ProductSourcePath)\cs\System.Web.Services.Description.resources.dll" />
|
||||
</Component>
|
||||
</Directory>
|
||||
<Directory Id="dirEA0127D6607E68B508B9DB9CE315A2CE" Name="de">
|
||||
<Component Id="cmpF2941A91B17EEA22CD6DAB34693D9AC0">
|
||||
|
@ -2052,6 +2055,9 @@
|
|||
<Component Id="cmpB43ED7BA30C844E2B5C38F7B747EEFDC">
|
||||
<File Id="filE106C77258F047E8A384E1E75B7EF6B8" KeyPath="yes" Source="$(var.ProductSourcePath)\de\System.Private.ServiceModel.resources.dll" />
|
||||
</Component>
|
||||
<Component Id="cmp777DF202EF2542F2ACFCCF0481E8D6EE">
|
||||
<File Id="filFCCE95BFDDD540E1AA243049872EF5D0" KeyPath="yes" Source="$(var.ProductSourcePath)\de\System.Web.Services.Description.resources.dll" />
|
||||
</Component>
|
||||
</Directory>
|
||||
<Directory Id="dir5B65D7353FBDCD17AB60A674B3FDF93B" Name="es">
|
||||
<Component Id="cmpBEB5F3CF75675537751F0D0B32125BF1">
|
||||
|
@ -2114,6 +2120,9 @@
|
|||
<Component Id="cmpCC4A42AA70EE4418926986F5A4B8D3FA">
|
||||
<File Id="fil186134FCB6984F1484A8308DF4F2B917" KeyPath="yes" Source="$(var.ProductSourcePath)\es\System.Private.ServiceModel.resources.dll" />
|
||||
</Component>
|
||||
<Component Id="cmpF96C036EAE3B436DB096888697193FAF">
|
||||
<File Id="fil761ECB84FAFA4674AB5712669532C569" KeyPath="yes" Source="$(var.ProductSourcePath)\es\System.Web.Services.Description.resources.dll" />
|
||||
</Component>
|
||||
</Directory>
|
||||
<Directory Id="dir23063512FA8C884E1B4F08FDF0A44516" Name="fr">
|
||||
<Component Id="cmp1DEB513A065956086898BCDACC5887B6">
|
||||
|
@ -2176,6 +2185,9 @@
|
|||
<Component Id="cmpE7BE9D8F63E04798870E57BA1EABB9A5">
|
||||
<File Id="fil93C038D9EED945F5A984CF3C98EDB72B" KeyPath="yes" Source="$(var.ProductSourcePath)\fr\System.Private.ServiceModel.resources.dll" />
|
||||
</Component>
|
||||
<Component Id="cmp789F545EA2CB4AC5A2688CF730A5F6B4">
|
||||
<File Id="fil70A83BE26FCF4905B220521A6B75198D" KeyPath="yes" Source="$(var.ProductSourcePath)\fr\System.Web.Services.Description.resources.dll" />
|
||||
</Component>
|
||||
</Directory>
|
||||
<Directory Id="dir42B03840AE19D1498CC524F2B6C0389D" Name="it">
|
||||
<Component Id="cmp3EC91B8BF4282E77113321E5D1ED27B2">
|
||||
|
@ -2238,6 +2250,9 @@
|
|||
<Component Id="cmp166B17F72C954B0087DF991E560B399A">
|
||||
<File Id="fil528F0FBF10C246568FCE1F5B10E541D1" KeyPath="yes" Source="$(var.ProductSourcePath)\it\System.Private.ServiceModel.resources.dll" />
|
||||
</Component>
|
||||
<Component Id="cmp0173AE0CBFA44C269D93361F6C98F99B">
|
||||
<File Id="fil3767F5D3C1264EC596A9F335355521C6" KeyPath="yes" Source="$(var.ProductSourcePath)\it\System.Web.Services.Description.resources.dll" />
|
||||
</Component>
|
||||
</Directory>
|
||||
<Directory Id="dir086D21BE309BE4C7081FC60E3524890F" Name="ja">
|
||||
<Component Id="cmp867E4E51FE7BC09AAD5D59FD76716FBC">
|
||||
|
@ -2300,6 +2315,9 @@
|
|||
<Component Id="cmp529A2B5343FD466884FAF627E37C648D">
|
||||
<File Id="fil265B2A6A67EF4C6E8C17BDC3AAD8F729" KeyPath="yes" Source="$(var.ProductSourcePath)\ja\System.Private.ServiceModel.resources.dll" />
|
||||
</Component>
|
||||
<Component Id="cmp5492F78ACB1A4391BBED371FDFC06B9E">
|
||||
<File Id="fil54F7909E28E54B0687222DFD1D95009D" KeyPath="yes" Source="$(var.ProductSourcePath)\ja\System.Web.Services.Description.resources.dll" />
|
||||
</Component>
|
||||
</Directory>
|
||||
<Directory Id="dir43D6CAD5F3ED1060009918D06D84FB18" Name="ko">
|
||||
<Component Id="cmpAA026CCA623F0E8FB5BAE9F201C5B89D">
|
||||
|
@ -2362,6 +2380,9 @@
|
|||
<Component Id="cmp4EE1633EE4864CE5B9015BF76BD31D14">
|
||||
<File Id="fil688FE14A80204086A48DE1BDC6591EB0" KeyPath="yes" Source="$(var.ProductSourcePath)\ko\System.Private.ServiceModel.resources.dll" />
|
||||
</Component>
|
||||
<Component Id="cmp3B07F4E4B6034F3284288C18F4638CA7">
|
||||
<File Id="filA52AFEA335CA41D98DB28358CE344EB5" KeyPath="yes" Source="$(var.ProductSourcePath)\ko\System.Web.Services.Description.resources.dll" />
|
||||
</Component>
|
||||
</Directory>
|
||||
<Directory Id="dirE8201C74A7184D11233BAD63C6DB37BD" Name="pl">
|
||||
<Component Id="cmpA656A18FE14D3C8EB02C31AE474054E3">
|
||||
|
@ -2424,6 +2445,9 @@
|
|||
<Component Id="cmpC8C68DB0DEE44CF49D98532D2C26395E">
|
||||
<File Id="fil1959B05E9F214DCFA6670F1892EE2E7D" KeyPath="yes" Source="$(var.ProductSourcePath)\pl\System.Private.ServiceModel.resources.dll" />
|
||||
</Component>
|
||||
<Component Id="cmpA8A66545C44F428BB552B55EEE353BB0">
|
||||
<File Id="filC0107BEFC31E4F9AB5037537B82D92EF" KeyPath="yes" Source="$(var.ProductSourcePath)\pl\System.Web.Services.Description.resources.dll" />
|
||||
</Component>
|
||||
</Directory>
|
||||
<Directory Id="dir47ED939BFA870848E0764E862CD6B4D7" Name="pt-BR">
|
||||
<Component Id="cmp3D20E940BDBF41630242C63011A80CE5">
|
||||
|
@ -2486,6 +2510,9 @@
|
|||
<Component Id="cmpF3C18F07C6A148638CBC858EB02E3A6D">
|
||||
<File Id="filE6672552F1EE45D3AC3021E02DB093CB" KeyPath="yes" Source="$(var.ProductSourcePath)\pt-BR\System.Private.ServiceModel.resources.dll" />
|
||||
</Component>
|
||||
<Component Id="cmp0C4751F9D5C14419A45F234152D21DA9">
|
||||
<File Id="filF6E3EF23DEEF4D3BB3CA9C9D084FB607" KeyPath="yes" Source="$(var.ProductSourcePath)\pt-BR\System.Web.Services.Description.resources.dll" />
|
||||
</Component>
|
||||
</Directory>
|
||||
<Directory Id="dir37B8DFAE26D5F8E9948851F7D19F9E20" Name="ru">
|
||||
<Component Id="cmpFDCD51BD80926ABECCE27D0D66A47C8F">
|
||||
|
@ -2548,6 +2575,9 @@
|
|||
<Component Id="cmpBD958F4B8F9146499DE2CA6321C65F96">
|
||||
<File Id="fil6A1EB9311FE546F69F28948794DC43BF" KeyPath="yes" Source="$(var.ProductSourcePath)\ru\System.Private.ServiceModel.resources.dll" />
|
||||
</Component>
|
||||
<Component Id="cmp6ADB50DF9F2D4BCA9E682AA6D1C7C03B">
|
||||
<File Id="fil7FECA5AED84D4C84968358F2C065BBEC" KeyPath="yes" Source="$(var.ProductSourcePath)\ru\System.Web.Services.Description.resources.dll" />
|
||||
</Component>
|
||||
</Directory>
|
||||
<Directory Id="dirA7E9CC01273A7FED89FC8D3A368E00CC" Name="tr">
|
||||
<Component Id="cmp286FCD0B19BF06446A7274672A2491CA">
|
||||
|
@ -2610,6 +2640,9 @@
|
|||
<Component Id="cmp2B8239B905B146A69CD5D55A353AC131">
|
||||
<File Id="fil618AA430D1794A45A1D2BAA2451BECB2" KeyPath="yes" Source="$(var.ProductSourcePath)\tr\System.Private.ServiceModel.resources.dll" />
|
||||
</Component>
|
||||
<Component Id="cmp9FCFAEB797D9475C873E21B4B5A89E28">
|
||||
<File Id="filC4BDA69F669843EAAD7B6D8714CB1420" KeyPath="yes" Source="$(var.ProductSourcePath)\tr\System.Web.Services.Description.resources.dll" />
|
||||
</Component>
|
||||
</Directory>
|
||||
<Directory Id="dir47E993970F74AA9F393D23500827D12C" Name="zh-Hans">
|
||||
<Component Id="cmp34C4A21743AC68583599BF2B139F39F2">
|
||||
|
@ -2672,6 +2705,9 @@
|
|||
<Component Id="cmp582595AE8291444E837793472E0A259C">
|
||||
<File Id="fil7044506B31FA4130B2E375147032298D" KeyPath="yes" Source="$(var.ProductSourcePath)\zh-Hans\System.Private.ServiceModel.resources.dll" />
|
||||
</Component>
|
||||
<Component Id="cmpF24D3B9F29F84B4D9C47577B7926FC2E">
|
||||
<File Id="fil0AF0C0F933404EABBC94B10ED8740042" KeyPath="yes" Source="$(var.ProductSourcePath)\zh-Hans\System.Web.Services.Description.resources.dll" />
|
||||
</Component>
|
||||
</Directory>
|
||||
<Directory Id="dirB1FFB91EED6FD71EA866548CEA3A5298" Name="zh-Hant">
|
||||
<Component Id="cmpBC28FE8B65954B00AECA9C534639596D">
|
||||
|
@ -2734,6 +2770,9 @@
|
|||
<Component Id="cmp91C27D1766E84B8BB0F0C70888F03C2E">
|
||||
<File Id="filC888727CE05A4A9FA0DB66EE0F15097C" KeyPath="yes" Source="$(var.ProductSourcePath)\zh-Hant\System.Private.ServiceModel.resources.dll" />
|
||||
</Component>
|
||||
<Component Id="cmpD55F08F6CF51498E9E8551067BA57040">
|
||||
<File Id="fil46C47F01171F45A898A7AD6A14ACE432" KeyPath="yes" Source="$(var.ProductSourcePath)\zh-Hant\System.Web.Services.Description.resources.dll" />
|
||||
</Component>
|
||||
</Directory>
|
||||
<Directory Name="Schemas" Id="dir1DB5B24CC3494785974A51F28F128069">
|
||||
<Directory Name="PSMaml" Id="dirAC38B2C7629B42DC836E01F976A10EC9">
|
||||
|
@ -3109,8 +3148,11 @@
|
|||
<Component Id="cmp09155DA101E1424B98832A789E93E835">
|
||||
<File Id="fil7D748565EBF5423A84CFC6D25D21F43C" KeyPath="yes" Source="$(var.ProductSourcePath)\Microsoft.Bcl.AsyncInterfaces.dll" />
|
||||
</Component>
|
||||
<Component Id="cmpDAFCD776C56B4CF78A4534704588E38B">
|
||||
<File Id="fil0734B55E8FC6480B97679A249A892D54" KeyPath="yes" Source="$(var.ProductSourcePath)\mscordaccore_$(var.FileArchitecture)_$(var.FileArchitecture)_6.0.21.48005.dll" />
|
||||
<Component Id="cmp22840874A8C84AA796496634FBEBF09C">
|
||||
<File Id="fil2067B616D1FA4B30932A0240ABE06089" KeyPath="yes" Source="$(var.ProductSourcePath)\System.Web.Services.Description.dll" />
|
||||
</Component>
|
||||
<Component Id="cmpFB17CABA17334B2BBA1ED6CBF757B310">
|
||||
<File Id="fil1621E0132D2C49B89068166196075157" KeyPath="yes" Source="$(var.ProductSourcePath)\mscordaccore_$(var.FileArchitecture)_$(var.FileArchitecture)_6.0.21.52210.dll" />
|
||||
</Component>
|
||||
</DirectoryRef>
|
||||
</Fragment>
|
||||
|
@ -4110,10 +4152,24 @@
|
|||
<ComponentRef Id="cmp2B8239B905B146A69CD5D55A353AC131" />
|
||||
<ComponentRef Id="cmpBD958F4B8F9146499DE2CA6321C65F96" />
|
||||
<ComponentRef Id="cmp166B17F72C954B0087DF991E560B399A" />
|
||||
<ComponentRef Id="cmpDAFCD776C56B4CF78A4534704588E38B" />
|
||||
<ComponentRef Id="cmp529A2B5343FD466884FAF627E37C648D" />
|
||||
<ComponentRef Id="cmp4EE1633EE4864CE5B9015BF76BD31D14" />
|
||||
<ComponentRef Id="cmpE7BE9D8F63E04798870E57BA1EABB9A5" />
|
||||
<ComponentRef Id="cmp5B67AE2852E04C26970FD2016CA76E07" />
|
||||
<ComponentRef Id="cmp6ADB50DF9F2D4BCA9E682AA6D1C7C03B" />
|
||||
<ComponentRef Id="cmpA8A66545C44F428BB552B55EEE353BB0" />
|
||||
<ComponentRef Id="cmp5492F78ACB1A4391BBED371FDFC06B9E" />
|
||||
<ComponentRef Id="cmp22840874A8C84AA796496634FBEBF09C" />
|
||||
<ComponentRef Id="cmp0173AE0CBFA44C269D93361F6C98F99B" />
|
||||
<ComponentRef Id="cmpFB17CABA17334B2BBA1ED6CBF757B310" />
|
||||
<ComponentRef Id="cmpD55F08F6CF51498E9E8551067BA57040" />
|
||||
<ComponentRef Id="cmp777DF202EF2542F2ACFCCF0481E8D6EE" />
|
||||
<ComponentRef Id="cmpF24D3B9F29F84B4D9C47577B7926FC2E" />
|
||||
<ComponentRef Id="cmp3B07F4E4B6034F3284288C18F4638CA7" />
|
||||
<ComponentRef Id="cmp9FCFAEB797D9475C873E21B4B5A89E28" />
|
||||
<ComponentRef Id="cmp0C4751F9D5C14419A45F234152D21DA9" />
|
||||
<ComponentRef Id="cmpF96C036EAE3B436DB096888697193FAF" />
|
||||
<ComponentRef Id="cmp789F545EA2CB4AC5A2688CF730A5F6B4" />
|
||||
</ComponentGroup>
|
||||
</Fragment>
|
||||
</Wix>
|
||||
|
|
114
build.psm1
114
build.psm1
|
@ -16,6 +16,8 @@ $script:Options = $null
|
|||
$dotnetMetadata = Get-Content $PSScriptRoot/DotnetRuntimeMetadata.json | ConvertFrom-Json
|
||||
$dotnetCLIChannel = $dotnetMetadata.Sdk.Channel
|
||||
$dotnetCLIQuality = $dotnetMetadata.Sdk.Quality
|
||||
$dotnetAzureFeed = $dotnetMetadata.Sdk.azureFeed
|
||||
$dotnetSDKVersionOveride = $dotnetMetadata.Sdk.sdkImageOverride
|
||||
$dotnetCLIRequiredVersion = $(Get-Content $PSScriptRoot/global.json | ConvertFrom-Json).Sdk.Version
|
||||
|
||||
# Track if tags have been sync'ed
|
||||
|
@ -386,7 +388,8 @@ function Start-PSBuild {
|
|||
}
|
||||
|
||||
# Verify if the dotnet in-use is the required version
|
||||
$dotnetCLIInstalledVersion = Start-NativeExecution -sb { dotnet --version } -IgnoreExitcode
|
||||
$dotnetCLIInstalledVersion = Get-LatestInstalledSDK
|
||||
|
||||
If ($dotnetCLIInstalledVersion -ne $dotnetCLIRequiredVersion) {
|
||||
Write-Warning @"
|
||||
The currently installed .NET Command Line Tools is not the required version.
|
||||
|
@ -1746,6 +1749,13 @@ function Install-Dotnet {
|
|||
[string]$FeedCredential
|
||||
)
|
||||
|
||||
Write-Verbose -Verbose "In install-dotnet"
|
||||
|
||||
# This is needed workaround for RTM pre-release build as the SDK version is always 6.0.100 after installation for every pre-release
|
||||
if ($dotnetCLIRequiredVersion -like '6.0.100-rtm.*') {
|
||||
$dotnetCLIRequiredVersion = '6.0.100'
|
||||
}
|
||||
|
||||
# This allows sudo install to be optional; needed when running in containers / as root
|
||||
# Note that when it is null, Invoke-Expression (but not &) must be used to interpolate properly
|
||||
$sudo = if (!$NoSudo) { "sudo" }
|
||||
|
@ -1773,10 +1783,12 @@ function Install-Dotnet {
|
|||
Write-Warning "This script only removes prior versions of dotnet for Ubuntu and OS X"
|
||||
}
|
||||
|
||||
Write-Verbose -Verbose "Invoking install script"
|
||||
|
||||
# Install new dotnet 1.1.0 preview packages
|
||||
$installScript = "dotnet-install.sh"
|
||||
Start-NativeExecution {
|
||||
Write-Verbose -Message "downloading install script from $installObtainUrl/$installScript ..." -Verbose
|
||||
|
||||
Write-Verbose -Message "downloading install script from $installObtainUrl/$installScript ..." -Verbose
|
||||
& $wget $installObtainUrl/$installScript
|
||||
|
||||
if ((Get-ChildItem "./$installScript").Length -eq 0) {
|
||||
|
@ -1795,9 +1807,16 @@ function Install-Dotnet {
|
|||
}
|
||||
|
||||
if ($AzureFeed) {
|
||||
$bashArgs += @('-AzureFeed', $AzureFeed, '-FeedCredential', $FeedCredential)
|
||||
$bashArgs += @('-AzureFeed', $AzureFeed)
|
||||
}
|
||||
|
||||
if ($FeedCredential) {
|
||||
$bashArgs += @('-FeedCredential', $FeedCredential)
|
||||
}
|
||||
|
||||
$bashArgs | Out-String | Write-Verbose -Verbose
|
||||
|
||||
Start-NativeExecution {
|
||||
bash @bashArgs
|
||||
}
|
||||
} elseif ($environment.IsWindows) {
|
||||
|
@ -1820,35 +1839,44 @@ function Install-Dotnet {
|
|||
}
|
||||
|
||||
if ($AzureFeed) {
|
||||
$installArgs += @{
|
||||
AzureFeed = $AzureFeed
|
||||
$FeedCredential = $FeedCredential
|
||||
}
|
||||
$installArgs += @{AzureFeed = $AzureFeed}
|
||||
}
|
||||
|
||||
if ($FeedCredential) {
|
||||
$installArgs += @{FeedCredential = $FeedCredential}
|
||||
}
|
||||
|
||||
$installArgs | Out-String | Write-Verbose -Verbose
|
||||
|
||||
& ./$installScript @installArgs
|
||||
}
|
||||
else {
|
||||
# dotnet-install.ps1 uses APIs that are not supported in .NET Core, so we run it with Windows PowerShell
|
||||
$fullPSPath = Join-Path -Path $env:windir -ChildPath "System32\WindowsPowerShell\v1.0\powershell.exe"
|
||||
$fullDotnetInstallPath = Join-Path -Path $PWD.Path -ChildPath $installScript
|
||||
|
||||
if ($Version) {
|
||||
$psArgs = @('-NoLogo', '-NoProfile', '-File', $fullDotnetInstallPath, '-Version', $Version, '-Quality', $Quality)
|
||||
}
|
||||
elseif ($Channel) {
|
||||
$psArgs = @('-NoLogo', '-NoProfile', '-File', $fullDotnetInstallPath, '-Channel', $Channel, '-Quality', $Quality)
|
||||
}
|
||||
|
||||
if ($InstallDir) {
|
||||
$psArgs += @('-InstallDir', $InstallDir)
|
||||
}
|
||||
|
||||
if ($AzureFeed) {
|
||||
$psArgs += @('-AzureFeed', $AzureFeed)
|
||||
}
|
||||
|
||||
if ($FeedCredential) {
|
||||
$psArgs += @('-FeedCredential', $FeedCredential)
|
||||
}
|
||||
|
||||
$psArgs | Out-String | Write-Verbose -Verbose
|
||||
|
||||
Start-NativeExecution {
|
||||
|
||||
if ($Version) {
|
||||
$psArgs = @('-NoLogo', '-NoProfile', '-File', $fullDotnetInstallPath, '-Version', $Version, '-Quality', $Quality)
|
||||
}
|
||||
elseif ($Channel) {
|
||||
$psArgs = @('-NoLogo', '-NoProfile', '-File', $fullDotnetInstallPath, '-Channel', $Channel, '-Quality', $Quality)
|
||||
}
|
||||
|
||||
if ($InstallDir) {
|
||||
$psArgs += @('-InstallDir', $InstallDir)
|
||||
}
|
||||
|
||||
if ($AzureFeed) {
|
||||
$psArgs += @('-AzureFeed', $AzureFeed, '-FeedCredential', $FeedCredential)
|
||||
}
|
||||
|
||||
& $fullPSPath @psArgs
|
||||
}
|
||||
}
|
||||
|
@ -1882,6 +1910,10 @@ function Start-PSBootstrap {
|
|||
|
||||
Push-Location $PSScriptRoot/tools
|
||||
|
||||
if ($dotnetSDKVersionOveride) {
|
||||
$Version = $dotnetSDKVersionOveride
|
||||
}
|
||||
|
||||
try {
|
||||
if ($environment.IsLinux -or $environment.IsMacOS) {
|
||||
# This allows sudo install to be optional; needed when running in containers / as root
|
||||
|
@ -2014,14 +2046,18 @@ function Start-PSBootstrap {
|
|||
}
|
||||
}
|
||||
|
||||
Write-Verbose -Verbose "Calling Find-Dotnet from Start-PSBootstrap"
|
||||
|
||||
# Try to locate dotnet-SDK before installing it
|
||||
Find-Dotnet
|
||||
|
||||
Write-Verbose -Verbose "Back from calling Find-Dotnet from Start-PSBootstrap"
|
||||
|
||||
# Install dotnet-SDK
|
||||
$dotNetExists = precheck 'dotnet' $null
|
||||
$dotNetVersion = [string]::Empty
|
||||
if($dotNetExists) {
|
||||
$dotNetVersion = Start-NativeExecution -sb { dotnet --version } -IgnoreExitcode
|
||||
$dotNetVersion = Get-LatestInstalledSDK
|
||||
}
|
||||
|
||||
if(!$dotNetExists -or $dotNetVersion -ne $dotnetCLIRequiredVersion -or $Force.IsPresent) {
|
||||
|
@ -2036,6 +2072,12 @@ function Start-PSBootstrap {
|
|||
}
|
||||
|
||||
$DotnetArguments = @{ Channel=$Channel; Version=$Version; NoSudo=$NoSudo }
|
||||
|
||||
if ($dotnetAzureFeed) {
|
||||
$null = $DotnetArguments.Add("AzureFeed", $dotnetAzureFeed)
|
||||
$null = $DotnetArguments.Add("FeedCredential", $null)
|
||||
}
|
||||
|
||||
Install-Dotnet @DotnetArguments
|
||||
}
|
||||
else {
|
||||
|
@ -2057,6 +2099,12 @@ function Start-PSBootstrap {
|
|||
}
|
||||
}
|
||||
|
||||
function Get-LatestInstalledSDK {
|
||||
Start-NativeExecution -sb {
|
||||
dotnet --list-sdks | Select-String -Pattern '\d*.\d*.\d*(-\w*\.\d*)?' | ForEach-Object { [System.Management.Automation.SemanticVersion]::new($_.matches.value) } | Sort-Object -Descending | Select-Object -First 1
|
||||
} -IgnoreExitcode 2> $null
|
||||
}
|
||||
|
||||
function Start-DevPowerShell {
|
||||
[CmdletBinding(DefaultParameterSetName='ConfigurationParamSet')]
|
||||
param(
|
||||
|
@ -2189,17 +2237,29 @@ function Start-ResGen
|
|||
}
|
||||
|
||||
function Find-Dotnet() {
|
||||
Write-Verbose -Verbose "In Find-DotNet"
|
||||
|
||||
$originalPath = $env:PATH
|
||||
$dotnetPath = if ($environment.IsWindows) { "$env:LocalAppData\Microsoft\dotnet" } else { "$env:HOME/.dotnet" }
|
||||
|
||||
$chosenDotNetVersion = if($dotnetSDKVersionOveride) {
|
||||
$dotnetSDKVersionOveride
|
||||
}
|
||||
else {
|
||||
$dotnetCLIRequiredVersion
|
||||
}
|
||||
|
||||
# If there dotnet is already in the PATH, check to see if that version of dotnet can find the required SDK
|
||||
# This is "typically" the globally installed dotnet
|
||||
if (precheck dotnet) {
|
||||
# Must run from within repo to ensure global.json can specify the required SDK version
|
||||
Push-Location $PSScriptRoot
|
||||
$dotnetCLIInstalledVersion = Start-NativeExecution -sb { dotnet --version } -IgnoreExitcode 2> $null
|
||||
$dotnetCLIInstalledVersion = Get-LatestInstalledSDK
|
||||
Pop-Location
|
||||
if ($dotnetCLIInstalledVersion -ne $dotnetCLIRequiredVersion) {
|
||||
|
||||
Write-Verbose -Verbose "dotnetCLIInstalledVersion = $dotnetCLIInstalledVersion`nchosenDotNetVersion = $chosenDotNetVersion"
|
||||
|
||||
if ($dotnetCLIInstalledVersion -ne $chosenDotNetVersion) {
|
||||
Write-Warning "The 'dotnet' in the current path can't find SDK version ${dotnetCLIRequiredVersion}, prepending $dotnetPath to PATH."
|
||||
# Globally installed dotnet doesn't have the required SDK version, prepend the user local dotnet location
|
||||
$env:PATH = $dotnetPath + [IO.Path]::PathSeparator + $env:PATH
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"sdk": {
|
||||
"version": "6.0.100-rc.2.21505.57"
|
||||
"version": "6.0.100"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,9 +4,11 @@
|
|||
<clear />
|
||||
<add key="dotnet" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v2" />
|
||||
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
|
||||
<add key="dotnet-internal" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/6.0.100-rtm.21524.1-shipping/nuget/v2" />
|
||||
</packageSources>
|
||||
<disabledPackageSources>
|
||||
<clear />
|
||||
</disabledPackageSources>
|
||||
</configuration>
|
||||
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
|
||||
<ItemGroup>
|
||||
<!-- the following package(s) are from https://github.com/dotnet/corefx -->
|
||||
<PackageReference Include="System.ServiceProcess.ServiceController" Version="6.0.0-rc.2.21480.5" />
|
||||
<PackageReference Include="System.ServiceProcess.ServiceController" Version="6.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
@ -31,9 +31,9 @@
|
|||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.0.0-5.final" />
|
||||
<PackageReference Include="System.Threading.AccessControl" Version="6.0.0-rc.2.21480.5" />
|
||||
<PackageReference Include="System.Drawing.Common" Version="6.0.0-rc.2.21480.5" />
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.0.0-6.final" />
|
||||
<PackageReference Include="System.Threading.AccessControl" Version="6.0.0" />
|
||||
<PackageReference Include="System.Drawing.Common" Version="6.0.0" />
|
||||
<PackageReference Include="NJsonSchema" Version="10.5.2" />
|
||||
</ItemGroup>
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
<ItemGroup>
|
||||
<!-- the following package(s) are from https://github.com/dotnet/corefx -->
|
||||
<PackageReference Include="System.Diagnostics.EventLog" Version="6.0.0-rc.2.21480.5" />
|
||||
<PackageReference Include="System.Diagnostics.EventLog" Version="6.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
@ -18,19 +18,19 @@
|
|||
<!-- the following package(s) are from https://github.com/dotnet/fxdac -->
|
||||
<PackageReference Include="System.Data.SqlClient" Version="4.8.3" />
|
||||
<!-- the following package(s) are from https://github.com/dotnet/corefx -->
|
||||
<PackageReference Include="System.IO.Packaging" Version="6.0.0-rc.2.21480.5" />
|
||||
<PackageReference Include="System.Net.Http.WinHttpHandler" Version="6.0.0-rc.2.21480.5" />
|
||||
<PackageReference Include="System.Text.Encodings.Web" Version="6.0.0-rc.2.21480.5" />
|
||||
<PackageReference Include="System.IO.Packaging" Version="6.0.0" />
|
||||
<PackageReference Include="System.Net.Http.WinHttpHandler" Version="6.0.0" />
|
||||
<PackageReference Include="System.Text.Encodings.Web" Version="6.0.0" />
|
||||
<!-- the following package(s) are from https://github.com/dotnet/wcf -->
|
||||
<PackageReference Include="System.ServiceModel.Duplex" Version="4.9.0-rc2.21473.1" />
|
||||
<PackageReference Include="System.ServiceModel.Http" Version="4.9.0-rc2.21473.1" />
|
||||
<PackageReference Include="System.ServiceModel.NetTcp" Version="4.9.0-rc2.21473.1" />
|
||||
<PackageReference Include="System.ServiceModel.Primitives" Version="4.9.0-rc2.21473.1" />
|
||||
<PackageReference Include="System.ServiceModel.Security" Version="4.9.0-rc2.21473.1" />
|
||||
<PackageReference Include="System.Private.ServiceModel" Version="4.9.0-rc2.21473.1" />
|
||||
<PackageReference Include="System.ServiceModel.Duplex" Version="4.9.0" />
|
||||
<PackageReference Include="System.ServiceModel.Http" Version="4.9.0" />
|
||||
<PackageReference Include="System.ServiceModel.NetTcp" Version="4.9.0" />
|
||||
<PackageReference Include="System.ServiceModel.Primitives" Version="4.9.0" />
|
||||
<PackageReference Include="System.ServiceModel.Security" Version="4.9.0" />
|
||||
<PackageReference Include="System.Private.ServiceModel" Version="4.9.0" />
|
||||
<!-- the source could not be found for the following package(s) -->
|
||||
<PackageReference Include="Microsoft.NETCore.Windows.ApiSets" Version="1.0.1" />
|
||||
<PackageReference Include="Microsoft.Windows.Compatibility" Version="6.0.0-rc.2.21480.5" />
|
||||
<PackageReference Include="Microsoft.Windows.Compatibility" Version="6.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<ProjectReference Include="..\System.Management.Automation\System.Management.Automation.csproj" />
|
||||
<ProjectReference Include="..\Microsoft.WSMan.Runtime\Microsoft.WSMan.Runtime.csproj" />
|
||||
<!-- the following package(s) are from https://github.com/dotnet/corefx -->
|
||||
<PackageReference Include="System.ServiceProcess.ServiceController" Version="6.0.0-rc.2.21480.5" />
|
||||
<PackageReference Include="System.ServiceProcess.ServiceController" Version="6.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
|
|
|
@ -16,16 +16,16 @@
|
|||
<!-- the Application Insights package -->
|
||||
<PackageReference Include="Microsoft.ApplicationInsights" Version="2.18.0" />
|
||||
<!-- the following package(s) are from https://github.com/dotnet/corefx -->
|
||||
<PackageReference Include="Microsoft.Win32.Registry.AccessControl" Version="6.0.0-rc.2.21480.5" />
|
||||
<PackageReference Include="System.Configuration.ConfigurationManager" Version="6.0.0-rc.2.21480.5" />
|
||||
<PackageReference Include="System.DirectoryServices" Version="6.0.0-rc.2.21480.5" />
|
||||
<PackageReference Include="System.IO.FileSystem.AccessControl" Version="6.0.0-preview.5.21301.5" />
|
||||
<PackageReference Include="System.Management" Version="6.0.0-rc.2.21480.5" />
|
||||
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.0.0-rc.2.21480.5" />
|
||||
<PackageReference Include="System.Security.AccessControl" Version="6.0.0-rc.2.21480.5" />
|
||||
<PackageReference Include="System.Security.Cryptography.Pkcs" Version="6.0.0-rc.2.21480.5" />
|
||||
<PackageReference Include="System.Security.Permissions" Version="6.0.0-rc.2.21480.5" />
|
||||
<PackageReference Include="System.Text.Encoding.CodePages" Version="6.0.0-rc.2.21480.5" />
|
||||
<PackageReference Include="Microsoft.Win32.Registry.AccessControl" Version="6.0.0" />
|
||||
<PackageReference Include="System.Configuration.ConfigurationManager" Version="6.0.0" />
|
||||
<PackageReference Include="System.DirectoryServices" Version="6.0.0" />
|
||||
<!--PackageReference Include="System.IO.FileSystem.AccessControl" Version="6.0.0-preview.5.21301.5" /-->
|
||||
<PackageReference Include="System.Management" Version="6.0.0" />
|
||||
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.0.0" />
|
||||
<PackageReference Include="System.Security.AccessControl" Version="6.0.0" />
|
||||
<PackageReference Include="System.Security.Cryptography.Pkcs" Version="6.0.0" />
|
||||
<PackageReference Include="System.Security.Permissions" Version="6.0.0" />
|
||||
<PackageReference Include="System.Text.Encoding.CodePages" Version="6.0.0" />
|
||||
<!-- the following package(s) are from the powershell org -->
|
||||
<PackageReference Include="Microsoft.Management.Infrastructure" Version="2.0.0" />
|
||||
<PackageReference Include="Microsoft.PowerShell.Native" Version="7.2.0" />
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Library</OutputType>
|
||||
|
@ -7,7 +7,7 @@
|
|||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
|
||||
<PackageReference Include="Microsoft.DotNet.PlatformAbstractions" Version="2.1.0" />
|
||||
<PackageReference Include="Microsoft.DotNet.PlatformAbstractions" Version="5.0.0-preview.5.20278.1" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFrameworks>$(PERFLAB_TARGET_FRAMEWORKS)</TargetFrameworks>
|
||||
|
@ -6,10 +6,10 @@
|
|||
<LangVersion>latest</LangVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="CommandLineParser" Version="2.4.3" />
|
||||
<PackageReference Include="CommandLineParser" Version="2.8.0" />
|
||||
<PackageReference Include="MarkdownLog.NS20" Version="0.10.1" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="12.0.1" />
|
||||
<PackageReference Include="BenchmarkDotNet" Version="0.12.1" />
|
||||
<PackageReference Include="BenchmarkDotNet" Version="0.13.1" />
|
||||
<PackageReference Include="Perfolizer" Version="0.2.1" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Windows.Compatibility" Version="6.0.0-rc.2.21480.5" />
|
||||
<PackageReference Include="Microsoft.Windows.Compatibility" Version="6.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.0-rc.2.21480.10" />
|
||||
<PackageReference Include="System.Text.Encoding.CodePages" Version="6.0.0-rc.2.21480.5" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.0" />
|
||||
<PackageReference Include="System.Text.Encoding.CodePages" Version="6.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -189,7 +189,7 @@ function Get-DotnetUpdate {
|
|||
try {
|
||||
|
||||
try {
|
||||
$latestSDKVersionString = Invoke-RestMethod -Uri "http://aka.ms/dotnet/$channel/$quality/sdk-productVersion.txt" -ErrorAction Stop | ForEach-Object { $_.Trim() }
|
||||
$latestSDKVersionString = Invoke-RestMethod -Uri "http://aka.ms/dotnet/$channel/$quality/productVersion.txt" -ErrorAction Stop | ForEach-Object { $_.Trim() }
|
||||
$selectedQuality = $quality
|
||||
} catch {
|
||||
if ($_.exception.Response.StatusCode -eq 'NotFound') {
|
||||
|
@ -201,7 +201,7 @@ function Get-DotnetUpdate {
|
|||
|
||||
if (-not $latestSDKVersionString -or -not $latestSDKVersionString.StartsWith($sdkImageVersion)) {
|
||||
# we did not get a version number so fall back to daily
|
||||
$latestSDKVersionString = Invoke-RestMethod -Uri "http://aka.ms/dotnet/$channel/$qualityFallback/sdk-productVersion.txt" -ErrorAction Stop | ForEach-Object { $_.Trim() }
|
||||
$latestSDKVersionString = Invoke-RestMethod -Uri "http://aka.ms/dotnet/$channel/$qualityFallback/productVersion.txt" -ErrorAction Stop | ForEach-Object { $_.Trim() }
|
||||
$selectedQuality = $qualityFallback
|
||||
|
||||
if (-not $latestSDKVersionString.StartsWith($sdkImageVersion)) {
|
||||
|
@ -339,6 +339,9 @@ if ($dotnetUpdate.ShouldUpdate) {
|
|||
Start-PSBootstrap -Package
|
||||
Start-PSBuild -Clean -Configuration Release -CrossGen -InteractiveAuth:$InteractiveAuth
|
||||
|
||||
$publishPath = Split-Path (Get-PSOutput)
|
||||
Remove-Item -Path "$publishPath\*.pdb"
|
||||
|
||||
try {
|
||||
Start-PSPackage -Type msi -SkipReleaseChecks -InformationVariable wxsData
|
||||
} catch {
|
||||
|
|
|
@ -171,6 +171,7 @@ function Invoke-CIInstall
|
|||
}
|
||||
|
||||
Set-BuildVariable -Name TestPassed -Value False
|
||||
Write-Verbose -Verbose -Message "Calling Start-PSBootstrap from Invoke-CIInstall"
|
||||
Start-PSBootstrap
|
||||
}
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
|
||||
<PackageReference Include="System.Security.AccessControl" Version="6.0.0-rc.2.21480.5" />
|
||||
<PackageReference Include="System.Security.AccessControl" Version="6.0.0" />
|
||||
<PackageReference Include="Microsoft.PowerShell.MarkdownRender" Version="7.2.0" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Management.Infrastructure" Version="2.0.0" />
|
||||
<PackageReference Include="System.Security.AccessControl" Version="6.0.0-rc.2.21480.5" />
|
||||
<PackageReference Include="System.Security.Principal.Windows" Version="6.0.0-preview.5.21301.5" />
|
||||
<PackageReference Include="System.Security.AccessControl" Version="6.0.0" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
|
|
@ -54,12 +54,6 @@ jobs:
|
|||
Write-Verbose -Message "Register new package source 'dotnet'" -verbose
|
||||
}
|
||||
|
||||
## Remove old .NET SDKs if any exists
|
||||
if (Test-Path -Type Container $Home/.dotnet)
|
||||
{
|
||||
Remove-Item $Home/.dotnet -Recurse -Force
|
||||
}
|
||||
|
||||
## Install latest version from the channel
|
||||
#Install-Dotnet -Channel "$Channel" -Version $sdkVersion
|
||||
|
||||
|
|
Loading…
Reference in New Issue