Commit Graph
11548 Commits
Author SHA1 Message Date
Dongbo Wang 46337f983c Update Install-Dotnet to directly run the install script (#28022) 2026-09-17 14:27:37 -07:00
Dongbo Wang 2179219c84 Allow user to force the default implicit formatting to use AutoSize (#28018)
When `$PSStyle.AutoSizeDefaultFormatting = $true`, the default implicit formatting applied by PowerShell (via `Out-Default`) will enforce `AutoSize` when the chosen formatting view is `table` or `wide`, similar to running `Format-Table -AutoSize` and `Format-Wide -AutoSize` explicitly. The `List` and `Complex` views formatting won't be buffered though -- they will continue to be streamed.

This allows PowerShell to generate less verbose output when used by an agent. It also makes PowerShell works better with small-window terminal.
2026-09-17 14:27:16 -07:00
Dongbo Wang a049fa38ef Prevent localization of WPF key gesture strings (#28020) 2026-09-17 14:19:19 -07:00
olprod 8c1e798297 Localized file check-in by OneLocBuild Task: Build definition ID 13420: Build ID 2724482 (#28010) 2026-09-16 15:04:56 -07:00
Travis Plunk 88937ea0a7 Fix flaky Debug-Runspace attach event test (#27885) 2026-09-16 14:50:13 -07:00
Anam NaviedandAnam Navied 5e35e5ac89 Improve pointer lifecycle handling in PdhHelper (#28008)
Co-authored-by: Anam Navied <annavied@microsoft.com>
2026-09-11 18:49:49 -04:00
Anam Navied a71ba38db7 Improve remote prompt handling for PSCredential and SecureString arrays (#28007) 2026-09-11 15:24:07 -07:00
Anam Navied 9f7b30680d Improve CAB extraction path handling (#28009) 2026-09-11 15:23:35 -07:00
8e1675f179 Simplify Microsoft Store listing metadata (#27968)
Co-authored-by: Justin Chung <chungjustin@microsoft.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 15d5aa39-2adb-4337-80ba-a1a8568d8fba
2026-09-11 16:23:04 -05:00
Anam Navied 85efec2e1e Improve validation for Copy-Item -FromSession (#28006) 2026-09-11 13:41:30 -07:00
olprod 8a86458a50 Localized file check-in by OneLocBuild Task: Build definition ID 13420: Build ID 2716742 (#27983) 2026-09-11 09:36:57 -07:00
powershell-pr-automation[bot] d54afc0d5e Move to the .NET SDK 11-rc.1 for preview release (#27992) 2026-09-09 11:25:42 -07:00
Dongbo Wang 993e828d22 Update metadata.json for September releases (#27989) 2026-09-09 09:14:22 -07:00
Dongbo Wang 0a64a2d92a Fix LocProject.json tests and trigger CIs on changes to LocProject.json (#27988) 2026-09-09 09:14:03 -07:00
Dongbo Wang b664c2e026 Add PDP.xml to the LocProject.json file for localization (#27966) 2026-09-04 10:20:53 -07:00
olprod 6ca24ccf02 Localized file check-in by OneLocBuild Task: Build definition ID 13420: Build ID 2704971 (#27958) 2026-09-02 19:23:20 -07:00
Aditya Patwardhan efbd3b6fe4 Merged PR 41075: Map credential provider variable as it is a secret (#27959) 2026-09-02 16:45:29 -07:00
ed0ec1ba3b Enable early .NET builds in APIScan (#27952)
Co-authored-by: Justin Chung <chungjustin@microsoft.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot-Session: 8e891fb6-fc75-4166-bd45-0a564a2b94cd
2026-09-02 23:15:14 +00:00
Dongbo Wang d0f43b0034 Handle MSIX installation specially when prepend to PATH (#27782)
Update the code that prepends `$PSHOME` to `PATH` to handle the MSIX package installation specially -- it uses the stable path that points to the `ExecutionAlias` of the MSIX installation instead of `$PSHOME`.
2026-09-02 08:47:48 -07:00
Travis Plunk eef0852103 Add GetImportModuleCommand method back and check for session restriction in ShowCommand (#25557) 2026-09-02 08:45:08 -07:00
Dongbo Wang fcdb9f0c3c Fix the localization tests for the Release Automation environment (#27944) 2026-09-01 15:54:26 -07:00
Dongbo Wang 13b2fd1257 Change Windows test CI to stop using PowerShell 5.1 (#27940) 2026-09-01 10:07:36 -07:00
olprod 452ebf3eb4 Localized file check-in by OneLocBuild Task: Build definition ID 13420: Build ID 2701735 (#27895) 2026-09-01 09:56:11 -07:00
Dongbo Wang 000a26e8e6 Update metadata.json for August releases (#27919) 2026-09-01 09:53:48 -07:00
Dongbo Wang 5dd1e82f68 Merge the v7.7.0-preview.4 release branch back to GitHub master 2026-09-01 09:53:17 -07:00
Dongbo Wang 3eb14c4f7d Update AppxManifest.xml to only declare en-US for the <Resources> element (#27939) 2026-09-01 09:36:16 -07:00
be3fd7a04e Correct New-TemporaryDirectory help URI (#27934)
Co-authored-by: Justin Chung <chungjustin@microsoft.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-01 10:37:25 -05:00
Justin ChungandJustin Chung bc487bfe4d Use Custom Validation Policy for vPack Pipeline (#27911)
Co-authored-by: Justin Chung <chungjustin@microsoft.com>
Copilot-Session: 99e6a033-65fd-4a39-9a71-2ce9b7657c10
2026-08-31 18:40:58 -05:00
Dongbo Wang 1481b98f00 Fix build to remove PowerShell satellite assemblies properly (#27908) v7.7.0-preview.4 2026-08-31 12:23:29 -07:00
Dongbo Wang 2b1e86079d Turn off .NET invariant mode for Windows Build (#27901) 2026-08-28 16:32:31 -07:00
Dongbo Wang eb8b76e7c6 Remove the <assembly> element for from CmdletizationCoreResources.resx (#27900) 2026-08-28 11:14:55 -07:00
powershell-pr-automation[bot] 0132369310 Update preview changelog for v7.7.0-preview.4 (#27897) 2026-08-27 16:04:25 -07:00
Dongbo Wang ea61eef28e Add the needed variable groups to the MSIX VPack pipeline to enforce using the production ADO feed (#27896) 2026-08-27 15:06:40 -07:00
Aditya Patwardhan 9fa54b6100 Fix install dotnet for non-early-access release (#27892) 2026-08-27 10:33:20 -07:00
Patrick Meinecke 80fdeb912a Fix FileOnlyEntry crashing on older versions of Windows (#27880) 2026-08-26 12:45:21 -07:00
olprod 5e7d60bac8 Localized file check-in by OneLocBuild Task: Build definition ID 13420: Build ID 2691582 (#27876) 2026-08-25 13:50:39 -07:00
Dongbo Wang 4870e903d8 Fix comments in CmdletizationCoreResources.resx (#27879) 2026-08-24 15:10:33 -07:00
Anam NaviedandAnam Navied 929903692e Call CodeGeneration.EscapeSingleQuotedStringContent API in SyncCurrentLocationHandler (#27874)
Co-authored-by: Anam Navied <annavied@microsoft.com>
2026-08-20 21:18:18 +00:00
294fbbc8d6 Improve PowerShell Remoting Argument Validation (#27870)
Co-authored-by: Tess Gauthier <tessgauthier@microsoft.com>
Co-authored-by: Anam Navied <annavied@microsoft.com>
2026-08-20 17:00:26 -04:00
Anam NaviedandDongbo Wang 68437b2b6e Improve validation for data fragments for PSRP frame headers (#27871)
Co-authored-by: Dongbo Wang <dongbow@microsoft.com>
2026-08-20 16:59:34 -04:00
Anam NaviedandPatrick Meinecke 2fab4a611a Improve output file path determination for Invoke-WebRequest (#27872)
Co-authored-by: Patrick Meinecke <pmeinecke@microsoft.com>
2026-08-20 16:57:56 -04:00
Anam NaviedandPatrick Meinecke 91448ff154 Improve Authorization Header default and redirect behavior (#27873)
Co-authored-by: Patrick Meinecke <pmeinecke@microsoft.com>
2026-08-20 16:57:20 -04:00
olprod ee4dd03440 Localized file check-in by OneLocBuild Task: Build definition ID 13420: Build ID 2684623 (#27841) 2026-08-20 11:41:05 -07:00
Anam Navied ad9c8fb93c Add the xsd validation back for CIM cmdlets (#27869) 2026-08-20 10:00:51 -07:00
Dongbo Wang f48794c645 Fix the regression in tab completing positional parameters (#27857) 2026-08-19 12:14:37 -07:00
Dongbo Wang 9337fa1411 Fix the scripts used for Copy-Item -FromSessoin/-ToSession scenarios and also enable tests (#27773)
- Fix the scripts used for `Copy-Item -FromSessoin/-ToSession` and `PSEdit`. They use `-Encoding Byte`, which only works in PS5.1. In PS 7+, we need to use `-AsByteStream` instead. So, those scenarios (copy alternate data stream to/from remote PS 7 session and edit file from a remote PS 7 session) have been broken for a long time.
- The remote tests for `Copy-Item` have always been disabled. This PR re-enables those tests for Windows (the `HelperRemoting` module only works on Windows).
2026-08-18 16:01:04 -07:00
Dongbo Wang bac40c877b Fix PATH caching in CommandDiscovery code (#27809)
The method `GetLookupDirectoryPaths` always returns the cached instance of path collection. However, the returned collection gets mutated in `CommandPathSearch.ResolveCurrentDirectoryInLookupPaths` to resolve the relative paths such as `.\tools` based on the user's current working directory `$PWD`, so for example, `.\tools` gets replaced with `cwd-1\tools` in the cached instance. Then, when the user changes to a different working directory `cwd-2`, command discovery won't find the executable or ps1 script under `cwd-2/tools` as expected, but those executables under `cwd-1\tools` will always be discoverable no matter what the `$PWD` is. That behavior is incorrect.

This pull request improves the caching logic of `GetLookupDirectoryPaths` and makes it return a copy of the path collection, so the mutation happens to the returned copy, and the cached instance is kept intact. So, for every command search, the `CommandPathSearch` will resolve relative paths against the `$PWD` that the user is located at that time.
2026-08-17 15:31:31 -07:00
Kirtikumar Anandrao RamchandaniandJustin Chung f83ccddf80 Add New-TemporaryDirectory cmdlet (#27549)
Co-authored-by: Justin Chung <124807742+jshigetomi@users.noreply.github.com>
2026-08-17 13:35:04 -05:00
Justin ChungandJustin Chung 174a75396c Use Azure CLI for early-access feed token (#27849)
Co-authored-by: Justin Chung <chungjustin@microsoft.com>
Copilot-Session: 8784f802-9d66-4692-b64d-c0713fa213cb
2026-08-13 16:26:05 -05:00
Justin ChungandJustin Chung 3d8a5af391 Fix OneBranch output variables for early .NET jobs (#27843)
Co-authored-by: Justin Chung <chungjustin@microsoft.com>
Copilot-Session: 8784f802-9d66-4692-b64d-c0713fa213cb
2026-08-13 19:16:21 +00:00