diff --git a/CHANGELOG/preview.md b/CHANGELOG/preview.md index fab0be18cf4..4e6fbcef398 100644 --- a/CHANGELOG/preview.md +++ b/CHANGELOG/preview.md @@ -1,5 +1,82 @@ # Preview Changelog +## [7.7.0-preview.5] + +### Engine Updates and Fixes + +- Tolerate IO/JSON errors reading the per-user `powershell.config.json` (#27373) +- Improve remote prompt handling for `PSCredential` and `SecureString` arrays (#28007) +- Improve CAB extraction path handling (#28009) + +### General Cmdlet Updates and Fixes + +- Fix telemetry UUID mutex acquisition (#28026) +- Allow user to force the default implicit formatting to use `AutoSize` (#28018) +- Prevent localization of WPF key gesture strings (#28020) +- Improve pointer lifecycle handling in PdhHelper (#28008) +- Improve validation for `Copy-Item -FromSession` (#28006) +- Handle MSIX installation specially when prepending to PATH (#27782) +- Add `GetImportModuleCommand` method back and check for session restriction in `ShowCommand` (#25557) +- Remove the `` element for from `CmdletizationCoreResources.resx` (#27900) + +### Tools + +- Update `Install-Dotnet` to directly run the install script (#28022) + +### Tests + +- Mark DSC Profile tests pending on MSIX test runs (#27884) +- Fix flaky `Debug-Runspace` attach event test (#27885) +- Fix `LocProject.json` tests and trigger CIs on changes to `LocProject.json` (#27988) +- Fix the localization tests for the Release Automation environment (#27944) + +### Build and Packaging Improvements + +
+ + + +

Update to .NET SDK 11.0.100-rc.1.26425.128

+ +

Update Microsoft.PowerShell.PSResourceGet to 1.3.0-preview2 (#28031)

+ +
+ + + +
+ +### Documentation and Help Content + +- Correct New-TemporaryDirectory help URI (#27934) + +[7.7.0-preview.5]: https://github.com/PowerShell/PowerShell/compare/v7.7.0-preview.4...v7.7.0-preview.5 + ## [7.7.0-preview.4] ### Engine Updates and Fixes diff --git a/test/powershell/Host/ConsoleHost.Tests.ps1 b/test/powershell/Host/ConsoleHost.Tests.ps1 index 542974eb86c..404926f47e0 100644 --- a/test/powershell/Host/ConsoleHost.Tests.ps1 +++ b/test/powershell/Host/ConsoleHost.Tests.ps1 @@ -1190,11 +1190,23 @@ Describe 'Pwsh startup and PATH' -Tag CI { $version | Should -BeExactly "PowerShell $($PSVersionTable.GitCommitId)" } - It 'pwsh starts even if PATH is not defined' { + It 'pwsh updates PATH correctly even if PATH is not defined' { $pwsh = Join-Path -Path $PSHOME -ChildPath "pwsh" Remove-Item Env:\PATH $path = & $pwsh -noprofile -command '$env:PATH' - $path | Should -BeExactly ($PSHOME + [System.IO.Path]::PathSeparator) + + $ExpectedPath = $PSHOME + if ($PSHOME.StartsWith("$env:ProgramFiles\WindowsApps\Microsoft.PowerShell")) { + # MSIX installed PowerShell uses the stable path instead of PSHOME. + $ExpectedPath = $PSHOME.Replace($env:ProgramFiles, "$env:LOCALAPPDATA\Microsoft") + + # Remove the version-specific part from the expected path. + $version = $PSVersionTable.PSVersion + $verStrRegex = "$($version.Major)\.$($version.Minor)\.$($version.Build).+__" + $ExpectedPath = $ExpectedPath -replace $verStrRegex, '' + } + + $path | Should -BeExactly ($ExpectedPath + [System.IO.Path]::PathSeparator) } } diff --git a/tools/metadata.json b/tools/metadata.json index c24b7fa5b6a..2f7c0659c15 100644 --- a/tools/metadata.json +++ b/tools/metadata.json @@ -1,10 +1,10 @@ { "StableReleaseTag": "v7.6.6", - "PreviewReleaseTag": "v7.7.0-preview.4", + "PreviewReleaseTag": "v7.7.0-preview.5", "ServicingReleaseTag": "v7.0.13", "ReleaseTag": "v7.6.6", "LTSReleaseTag": ["v7.4.20", "v7.6.6"], - "NextReleaseTag": "v7.7.0-preview.5", + "NextReleaseTag": "v7.7.0-preview.6", "LTSRelease": { "PublishToChannels": false, "Package": false }, "StableRelease": { "PublishToChannels": false, "Package": false } } diff --git a/tools/packages.microsoft.com/mapping.json b/tools/packages.microsoft.com/mapping.json index 6da204395e3..1e6184bffce 100644 --- a/tools/packages.microsoft.com/mapping.json +++ b/tools/packages.microsoft.com/mapping.json @@ -65,16 +65,14 @@ "distribution": [ "azl" ], - "PackageFormat": "PACKAGE_NAME-POWERSHELL_RELEASE-1.cm.aarch64.rpm", - "channel": "stable" + "PackageFormat": "PACKAGE_NAME-POWERSHELL_RELEASE-1.cm.aarch64.rpm" }, { "url": "azurelinux-4.0-beta-microsoft-x86_64", "distribution": [ "azl" ], - "PackageFormat": "PACKAGE_NAME-POWERSHELL_RELEASE-1.cm.x86_64.rpm", - "channel": "stable" + "PackageFormat": "PACKAGE_NAME-POWERSHELL_RELEASE-1.cm.x86_64.rpm" }, { "url": "microsoft-debian-stretch-prod",