Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .pipelines/templates/windows-hosted-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jobs:
value: none
- name: DOTNET_NOLOGO
value: 1
# Allow .NET SDK to access cultural data on Windows build.
- name: DOTNET_SYSTEM_GLOBALIZATION_INVARIANT
value: 0
- group: DotNetPrivateBuildAccess
- group: certificate_logical_to_actual
- name: ob_outputDirectory
Expand Down
84 changes: 84 additions & 0 deletions CHANGELOG/preview.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,89 @@
# Preview Changelog

## [7.7.0-preview.4]

### Engine Updates and Fixes

- Fix `FileOnlyEntry` crashing on older versions of Windows (#27880)
- Call `CodeGeneration.EscapeSingleQuotedStringContent` API in `SyncCurrentLocationHandler` (#27874)
- Improve PowerShell Remoting Argument Validation (#27870)
- Improve validation for data fragments for PSRP frame headers (#27871)
- Add the xsd validation back for CIM cmdlets (#27869)
- Fix PATH caching in `CommandDiscovery` code (#27809)
- Add support for new WLDP setting `EnableFileOnlyEntry` (#26752)
- Fix the dot-sourcing behavior of `pwsh -file` for advanced-function scripts (#27727)

### General Cmdlet Updates and Fixes

- Improve output file path determination for `Invoke-WebRequest` (#27872)
- Improve Authorization Header default and redirect behavior (#27873)
- Fix the regression in tab completing positional parameters (#27857)
- Add `New-TemporaryDirectory` cmdlet (#27549) (Thanks @KirtiRamchandani!)

### Code Cleanup

<details>

<summary>

<p>We thank the following contributors!</p>

</summary>

<ul>
<li>Remove <code>Test-Bom</code> and the boms JSON files (#27726)</li>
</ul>

</details>

### Tests

- Fix the scripts used for `Copy-Item -FromSession/-ToSession` scenarios and also enable tests (#27773)
Comment thread
daxian-dbw marked this conversation as resolved.
- Fix TimeZone test with duplicate names (#27525) (Thanks @KirtiRamchandani!)

### Build and Packaging Improvements

<details>

<summary>

<p>We thank the following contributors!</p>

</summary>

<ul>
<li>Add the needed variable groups to the MSIX VPack pipeline to enforce using the production ADO feed (#27896)</li>
<li>Fix install dotnet for non-early-access release (#27892)</li>
<li>Localized file check-in by OneLocBuild Task: Build definition ID 13420: Build ID 2691582 (#27876)</li>
<li>Fix comments in <code>CmdletizationCoreResources.resx</code> (#27879)</li>
<li>Localized file check-in by OneLocBuild Task: Build definition ID 13420: Build ID 2684623 (#27841)</li>
<li>Use Azure CLI for early-access feed token (#27849)</li>
<li>Fix OneBranch output variables for early .NET jobs (#27843)</li>
<li>Localized file check-in by OneLocBuild Task: Build definition ID 13420: Build ID 2674492 (#27821)</li>
<li>Localized file check-in by OneLocBuild Task: Build definition ID 13420: Build ID 2670960 (#27802)</li>
<li>Use .NET SDK and NuGet feed early access for build, package and release pipelines (#27795)</li>
<li>Update Microsoft.PowerShell.Archive version to 1.2.6 (#27784)</li>
<li>PMC: Remove EOL debian12 distribution for v7.7.0 preview (#27763)</li>
<li>PMC: Add Ubuntu 26.04 distribution for v7.7.0 (#27765)</li>
<li>Localized file check-in by OneLocBuild Task: Build definition ID 13420: Build ID 2661935 (#27766)</li>
<li>Localized file check-in by OneLocBuild Task: Build definition ID 13420: Build ID 2660148 (#27752)</li>
<li>Update the manifest resource names for the localized resources embedded in satellite assemblies (#27756)</li>
<li>Update <code>LocProject.json</code> to list each English resource file directly (#27751)</li>
<li>Localized file check-in by OneLocBuild Task: Build definition ID 13420: Build ID 2652124 (#27736)</li>
<li>Fix min-size package and ship localized resources only for MSIX packages (#27725)</li>
<li>Fix the W3C URIs in <code>.resx</code> resource files (#27729)</li>
<li>Update <code>metadata.json</code> for July releases (#27704)</li>
<li>Prepare for onboarding PowerShell to the Native2Native localization pipeline (#27667)</li>
</ul>

</details>

### Documentation and Help Content

- Update changelogs for v7.4.18, v7.5.9, and v7.6.4 (#27707)

[7.7.0-preview.4]: https://github.com/PowerShell/PowerShell/compare/v7.7.0-preview.3...v7.7.0-preview.4

## [7.7.0-preview.3]

### General Cmdlet Updates and Fixes
Expand Down
19 changes: 18 additions & 1 deletion build.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -565,9 +565,11 @@ Fix steps:
# as well as .zip packages, we only support the default en-US culture.
# Therefore, we only produce satellite assemblies for win7-x64, win7-x86, and win-arm64 by default (excluding min-size build),
# unless the caller wants to force produce localized resources.
$RemovePowerShellSatelliteAssemblies = $false
if (!$ForceProduceLocalizedResources -and ($Options.Runtime -notmatch '^(win7-x64|win7-x86|win-arm64)$' -or $ForMinimalSize)) {
# Disable satellite assemblies for other cultures.
# Disable satellite assemblies from package/runtime assets for other cultures.
$Arguments += "/property:SatelliteResourceLanguages=en"
$RemovePowerShellSatelliteAssemblies = $true
}

if ($Output -or $SMAOnly) {
Expand Down Expand Up @@ -743,6 +745,21 @@ Fix steps:
} finally {
Pop-Location
}

if ($RemovePowerShellSatelliteAssemblies) {
$smaResDll = 'System.Management.Automation.resources.dll'
$resDirs = Get-ChildItem -Path $publishPath -Filter $smaResDll -Recurse -Depth 1 | ForEach-Object DirectoryName

if ($resDirs) {
Write-Log -message "PowerShell satellite assemblies found under '$publishPath':"
$relatives = $resDirs | ForEach-Object { Resolve-Path $_ -Relative -RelativeBasePath $publishPath }
Write-Log -message ($relatives -join ", ")

$resDirs | Remove-Item -Recurse -Force -ErrorAction Stop
Write-Log -message "Removed PowerShell satellite assemblies under '$publishPath'."
}
Comment thread
daxian-dbw marked this conversation as resolved.
}

Write-LogGroupEnd -Title "Build PowerShell"

# No extra post-building task will run if '-SMAOnly' is specified, because its purpose is for a quick update of S.M.A.dll after full build.
Expand Down
Loading