Skip to content

v6.1.0-preview.2 Release of PowerShell Core

Compare
Choose a tag to compare
@daxian-dbw daxian-dbw released this 27 Apr 20:28
· 4556 commits to master since this release

v6.1.0-preview.2 - 2018-04-27

Known Issue

pwsh crashes on Win10 IoT arm32 - #6750

Breaking Changes

  • Remove support for file to opt-out of telemetry, only support environment variable (#6601)
  • Simplify the installation paths the MSI uses (#6442)

Engine Updates and Fixes

  • Fix running pwsh produced from dotnet build (#6549)
  • Remove the FullCLR-only symbol-info related code from EventManager.cs (#6563)
  • Improve PSMethod-to-Delegate conversion (#6570)
  • Fix PsUtils.GetManModule() to avoid infinite loop when there was no main module (#6358)
  • Fix error in windows environment provider when the environment variable has duplicates that differ only by case (#6489) (Thanks @mklement0!)
  • Make sure that the width of the header is at least the size of the label (or property name) (#6487)
  • Enable [Environment]::OSVersion to return current OS rather than compatible version (#6457)
  • Change the SaveError method in Parser to use nameof for error ids (#6498)
  • Fix error when Format-Wide -AutoSize | Out-String is called (#6491) (Thanks @stknohg!)
  • Make LanguagePrimitive.GetEnumerable treat DataTable as Enumerable (#6511)
  • Fix formatting of tables where headers span multiple rows (#6504)
  • Improve performance of parsing RegexOption for -split by using if branches (#6605) (Thanks @iSazonov!)
  • Enable specifying sshd subsystem to use via -Subsystem (#6603)
  • Add some optimizations in formatting subsystem (#6678) (Thanks @iSazonov!)
  • Throw better parsing error when statements should be put in named block (#6434)
  • Use Unregister-Event to remove an event subscriber when removing PSEdit function (#6449)
  • Make the PSISERemoteSessionOpenFile a support event (#6582)
  • Add -WorkingDirectory parameter to pwsh (#6612)
  • Support importing module paths that end in trailing directory separator (#6602)
  • Formatting: Use cache for dash padding strings for tables (#6625) (Thanks @iSazonov!)
  • Port Windows PowerShell AppLocker and DeviceGuard UMCI application white listing support (#6133)
  • Reduce allocations in TableWriter (#6648) (Thanks @iSazonov!)

General Cmdlet Updates and Fixes

  • Add -Resume Feature to WebCmdlets (#6447) (Thanks @markekraus!)
  • Support user@host:port syntax for SSH transport (#6558)
  • Add ported Test-Connection cmdlet (#5328) (Thanks @iSazonov!)
  • Added line break to Access-Denied error message (#6607)
  • Some fixes in Get-Date -UFormat (#6542) (Thanks @iSazonov!)
  • Added check for existence of Location HTTP header before using it (#6560) (Thanks @ffeldhaus!)
  • Enable Update-Help to save help content in user scope by default (#6352)
  • Update Enable-PSRemoting to create PowerShell.6 endpoint and version specific endpoint (#6519, #6630)
  • Update error message that Disconnect-PSSession is only supported with WSMan (#6689)
  • Make Export-FormatData print pretty XML output (#6691) (Thanks @iSazonov!)
  • Add -AsArray parameter to ConvertoTo-Json command (#6438)
  • Add Test-Json cmdlet (NJsonSchema) (#5229) (Thanks @iSazonov!)
  • Correct a typo in comment for Invoke-WebRequest (#6700) (Thanks @gabrielsroka!)
  • Re-order UFormat options in Get-Date (#6627) (Thanks @iSazonov!)
  • Add the parameter -Not to Where-Object (#6464) (Thanks @SimonWahlin!)

Code Cleanup

  • Engine: Fix several code cleanup issues (#6552, #6609)
  • Clean up workflow logic in the module loading component (#6523)
  • Engine: Clean up unneeded GetTypeInfo() calls (#6613, #6636, #6633, #6635, #6634)

Test

Build and Packaging Improvements

  • Use C# latest language in .csproj files (#6559) (Thanks @iSazonov!)
  • Update installpsh-<distrofamily>.sh installers to handle "preview" in version number (#6573) (Thanks @DarwinJS!)
  • Enable PowerShell.sln to work in VisualStudio (#6546)
  • Remove duplicate Restore-PSPackage (#6544)
  • Use -WorkingDirectory parameter to handle context menu when path contains single quotes (#6660) (Thanks @bergmeister!)
  • Make -CI not depend on -PSModuleRestore in Start-PSBuild (#6450)
  • Restore for official Linux arm builds (#6455)
  • Fix error about setting readonly variable in install-powershell.sh (#6617)
  • Make release macOS build work better (#6619, #6610)
  • MSI: add function to generate a MSP package (#6445)

Documentation and Help Content

  • Doc: Update Ubuntu source creation commands to use curl -o (#6510) (Thanks @M-D-M!)
  • Update stale bot message (#6462) (Thanks @iSazonov!)
  • Remove extraneous SSH and install docs from the 'demos' folder (#6628)

SHA256 Hashes of the release artifacts

  • powershell-6.1.0-preview.2-linux-arm32.tar.gz
    • CD5EF3073B2C2E97A440AC9ACC115B778CE415B16D0D47037A46E166FC771542
  • powershell-6.1.0-preview.2-linux-x64.tar.gz
    • 7373392DE1F319D6289299B4CA59651D3123593C7705810BC3400193E1AADD17
  • powershell-6.1.0-preview.2-1.rhel.7.x86_64.rpm
    • 04BD512418ABBE5C346226963664AB7E6D5196AAEAF9BB52AFCA450DA8FDBB71
  • powershell_6.1.0-preview.2-1.debian.8_amd64.deb
    • F8E2B3D5A4D9A5A2517CE775F6F1BC4E62E831B9CCB97B2DF3105B73C173F9DF
  • powershell_6.1.0-preview.2-1.debian.9_amd64.deb
    • 77BC4480F33377C6054189CB75190D0A04C0702161F3A6D32BF6AC5250CB8B90
  • powershell_6.1.0-preview.2-1.ubuntu.14.04_amd64.deb
    • B4FD5F105169CBDE2D7CF7DAB5B60AB20DE166DB6AA163FDF4D1EAF3FCEA93BF
  • powershell_6.1.0-preview.2-1.ubuntu.16.04_amd64.deb
    • FF4216CF2BAC06AB1A7A0200488ED4323F16F89217A3131DFB0CDF3362130D1E
  • powershell_6.1.0-preview.2-1.ubuntu.17.04_amd64.deb
    • DA3D259982EC860E05380A2D5C6F31B9852A0FD10C21C7F62F05FA994C82F400
  • PowerShell-6.1.0-preview.2-win-arm32.zip
    • C9C22198E5DAAAB3303C89C921D8AEC91D7137313B7E851506EE571664C05E6E
  • PowerShell-6.1.0-preview.2-win-arm64.zip
    • FD3CC8C25129B3368C2505971158800D14E2B810720E44B4BABAEC3A2E1C91E8
  • PowerShell-6.1.0-preview.2-win-x64.msi
    • 67817D6E381934B0DE6894CD6E62217EA1E8A21067F52002D2886A1C279DFC8B
  • PowerShell-6.1.0-preview.2-win-x64.zip
    • 1D86504C3241EB65771B3D96547C054AD8852AD06506AE47C82483ED72C20941
  • PowerShell-6.1.0-preview.2-win-x86.msi
    • AC8663B96BD91143B7C0CE76D7C4165427A25AC8713303218FFCF654ED0BBFF2
  • PowerShell-6.1.0-preview.2-win-x86.zip
    • 2172237F4146C4B3BA0BFBDD1B3CDAC71FA8D3C2008FA3C35465186FBDD9802C
  • powershell-6.1.0-preview.2-osx-x64.tar.gz
    • 208BE7A74077B6C6A512C3992F3F0500CA09AAE2CE325BDAEDAFBE954D2B2508
  • powershell-6.1.0-preview.2-osx.10.12-x64.pkg
    • CB1E6662043744DF5B1C48C7CFFB27137CC3765072946BBAE144CAD22E408B9D