Commit Graph
100 Commits
Author SHA1 Message Date
Dongbo Wang 53805fb426 Add the parameter Register-ArgumentCompleter -NativeFallback to support registering a cover-all completer for native commands (#25230) 2025-08-29 15:50:02 -07:00
Dongbo Wang 44e34f0044 Change the default feedback provider timeout from 300ms to 1000ms (#25910) 2025-08-26 16:06:23 -07:00
Dongbo Wang d68c15e743 Update PATH environment variable for package manager executable on Windows (#25847)
Implementation for PowerShell/PowerShell-RFC#391. A few implementation decisions:

1. Check the package manager list only once per process (**same as CMD**). So, changing the package manager list in registry doesn't affect a PowerShell session that is already running.

2. When detecting user/system PATH value changes, only check new items PREPENDED or APPENDED to the original string (**same as CMD**). The detection is made simple, which is not intended to detect complex changes to the user/system PATH.

3. The PATH update feature is disabled when the `Environment` provider is not available, or when the current session is restricted.
    - Both `Environment` provider and `IsSessionRestricted` are checked only once per PowerShell session.
    - Use `ConditionalWeakTable` to cache whether the feature is enabled or not for a given session.
    - We cannot use `thread-static` variable for the caching because it's possible for Runspace to reuse threads.
2025-08-20 12:53:59 -07:00
Dongbo Wang f4a452ea3c Update PSRP protocol to deprecate session key exchange between newer client and server (#25774) 2025-08-06 22:54:11 +00:00
Dongbo Wang b801027560 Revert "Never load a module targeting the PSReadLine module's SessionState" (#25792)
The change causes nested modules of PSReadLine to be loaded to global session state as well.

It's possible to check if we are currently importing the PSReadLine module but the check would depend on the current design of the PSReadLine module, such as how many nested modules it has, its module type, and etc., which is fragile. It's safer to just revert the change.
2025-07-29 14:32:21 -07:00
Dongbo Wang 4e035461b6 Make the interface IDeepCloneable internal to minimize confusion (#25552) 2025-06-02 15:18:35 -07:00
Dongbo Wang 625da6ff56 Remove OnDeserialized and Serializable attributes from Microsoft.Management.UI.Internal project (#25548)
Also removed `EnableUnsafeBinaryFormatterSerialization` property from `powershell-win-core.csproj` to disable the use of `BinaryFormatter`.
2025-06-02 15:16:11 -07:00
Dongbo Wang 70b4bda20f Publish .msixbundle package as a VPack (#25612) 2025-05-30 10:23:48 -07:00
Dongbo Wang 52150fd8a7 Add more tests for PSForEach and PSWhere methods (#25519) 2025-05-09 11:15:03 -07:00
Dongbo Wang f53865d1a4 Fix the isolated module test that was disabled previously (#25420) 2025-05-03 16:51:51 -07:00
Dongbo Wang a6005f3879 Move .NET method invocation logging to after the needed type conversion is done for method arguments (#25022) 2025-03-18 11:43:44 -07:00
Dongbo Wang ef64132f0a Fix TypeName.GetReflectionType() to work when the TypeName instance represents a generic type definition within a GenericTypeName (#24985) 2025-03-17 15:40:25 -07:00
Dongbo Wang 48b25da147 Remove the old fuzzy suggestion and fix the local script file name suggestion (#25177) 2025-03-17 10:19:15 -07:00
Dongbo Wang 0e6ffc52e9 Make SystemPolicy public APIs visible but non-op on Unix platforms so that they can be included in PowerShellStandard.Library (#25051) 2025-03-03 17:21:55 -08:00
Dongbo Wang 6e428a8820 Set standard handles explicitly when starting a process with -NoNewWindow (#25061) 2025-03-03 16:17:16 -08:00
Dongbo Wang 1b03005d1a Never load a module targeting the PSReadLine module's SessionState (#24909) 2025-02-18 10:18:30 -08:00
Dongbo Wang 4d174fcbb7 Filter out the nested modules of PSReadLine from module name tab completion (#24910) 2025-02-18 10:13:35 -08:00
Dongbo Wang e051748e9d Make the AssemblyVersion not change for servicing releases (#24667) 2025-01-08 11:47:30 -08:00
Dongbo Wang 1a39e4e8e1 Update PSReadLine to 2.3.6 (#24380) 2024-10-03 15:09:24 -07:00
Dongbo Wang 0b3709b1e1 Remove the MD5 branch in the strong name signing token calculation (#24288) 2024-09-17 17:09:53 -07:00
Dongbo Wang 7e27e63456 Handle global tool specially when prepending PSHome to PATH (#24228) 2024-09-10 13:01:27 -07:00
Dongbo Wang 5bcda5d060 Update the URLs used in nuget.config files (#24203) 2024-08-23 22:25:23 +00:00
Dongbo Wang 9417f6e86c Update changelog and metadata.json for v7.4.5 release (#24183) 2024-08-20 16:12:59 -07:00
Dongbo Wang d173d8c2b5 Minor cleanup on local variable names within a method (#24105) 2024-08-05 11:41:07 -07:00
Dongbo Wang dcf6754445 Fix the extent of the parser error when a number constant is invalid (#24024) 2024-07-09 10:55:25 -07:00
Dongbo Wang f0bddbe21c Merge the v7.5.0-preview.3 release branch to GitHub master branch 2024-05-28 13:33:31 -07:00
Dongbo Wang 485015a608 Update metadata.json for the v7.5.0-preview.3 release (#23862) 2024-05-28 11:36:43 -07:00
Dongbo Wang a015f1ce70 Merged PR 31179: Update the change log for v7.5.0-preview.3 release
Update the change log for v7.5.0-preview.3 release
2024-05-22 03:54:45 +00:00
Dongbo Wang d564d0fff9 Bump to .NET 9 preview 3 (#21782) 2024-05-09 15:36:52 -07:00
Dongbo Wang 1a52a93345 Add back two transitive dependency packages (#21415) 2024-04-04 11:41:00 -07:00
Dongbo Wang dafe0a803c Update PSReadLine to v2.3.5 for the next v7.4.x servicing release (#21414) 2024-04-03 13:57:07 -07:00
Dongbo Wang 171d9dfa71 Revert the PR #17856 (Do not preserve temporary results when no need to do so) (#21368) 2024-03-25 14:09:11 -07:00
Dongbo Wang ad7278bbff Make sure the assembly/library resolvers are registered at early stage (#21361) 2024-03-21 16:25:12 -07:00
Dongbo Wang d67a82d833 Handle the case that Runspace.DefaultRunspace is null when logging for WDAC Audit (#21344) 2024-03-14 11:39:25 -07:00
Dongbo Wang 4e357f129e Fix PowerShell class to support deriving from an abstract class with abstract properties (#21331) 2024-03-13 14:44:57 -07:00
Dongbo Wang 3df0aa33b7 Fix incorrect examples in XML docs in PowerShell.cs (#21173) 2024-02-01 11:19:16 -08:00
Dongbo Wang 783fb46e65 Validate the value for using namespace during semantic checks to prevent declaring invalid namespaces (#21162) 2024-02-01 09:42:37 -08:00
Dongbo Wang f0076b9d88 Merge the v7.5.0-preview.1 release branch to GitHub master branch 2024-01-18 15:42:05 -08:00
Dongbo Wang dd598b3d52 Update README.md and metadata.json for v7.5.0-preview.1 release (#21094) 2024-01-18 14:58:26 -08:00
Dongbo Wang 53d1a0d2d9 Merged PR 29314: Update ChangeLog for v7.5.0-preview.1
Update ChangeLog for v7.5.0-preview.1
2024-01-18 21:33:23 +00:00
Dongbo Wang 8283ac05c3 Bump .NET SDK to 8.0.101 (#21084) 2024-01-17 11:53:01 -08:00
Dongbo Wang e453c006d3 Update changelog for v7.2 and v7.3 (#21052) 2024-01-11 15:37:37 -08:00
Dongbo Wang a8e1924c3d Update README.md and metadata.json for v7.2.18 and v7.4.1 releases (#21044) 2024-01-11 15:13:18 -08:00
Dongbo Wang ac559185d0 Add Aliases to the properties shown up when formatting the help content of the parameter returned by Get-Help (#20994) 2024-01-09 11:21:31 -08:00
Dongbo Wang 649e809d57 Revert "Fix completion crash for the SCCM provider (#20815)" (#20919) 2023-12-13 16:53:52 -08:00
Dongbo Wang 7d62cf54ac Fix 4 issues for the WDAC logging feature (#20913) 2023-12-13 11:46:21 -08:00
Dongbo Wang 0adffa1470 Bump xUnit to 2.6.3 and disable the xUnit1031 warning (#20899) 2023-12-11 14:14:39 -08:00
Dongbo Wang 6a90fd0492 Leave the input/output/error handles unset when they are not redirected (#20853) 2023-12-08 12:20:34 -08:00
Dongbo Wang fb1f8e1d43 Bump .NET SDK to 8.0.0 RTM build and move the current preview changelog to 7.4.md (#20850) 2023-12-05 13:22:56 -08:00
Dongbo Wang ea01a28490 Update README.md and metadata.json for 7.2.15 and 7.3.8 releases (#20332) 2023-10-10 13:15:18 -07:00
Dongbo Wang 109c2425ac Bump PSReadLine from 2.2.6 to 2.3.4 (#20305) 2023-10-03 11:28:44 -07:00
Dongbo Wang 0beb4dad44 Revert "Update AppxManifest.xml to show application name on DefaultTile for Windows 10 21H2/22H2 Start Menu (#20080)" (#20396)
This change is causing our build to fail when producing MSIX package for Windows x64, x86 and arm64.
2023-09-29 14:22:14 -07:00
Dongbo Wang be2a86fc4c Bring updates in the v7.4.0-preview.6 release branch to the master branch (#20389) 2023-09-28 10:43:58 -07:00
Dongbo Wang c4fc2b27bb Update README.md and metadata.json for v7.4.0-preview.6 release (#20386) 2023-09-28 10:06:27 -07:00
Dongbo Wang 11ae15b093 Merged PR 27790: Update changelog for v7.4.0-preview.6 release
Update changelog for v7.4.0-preview.6 release. Ran `textlint --rule terminology .\CHANGELOG\preview.md` locally and test passed.
2023-09-27 23:14:11 +00:00
Dongbo Wang 38d87fe7c2 Merged PR 27795: Fix the regex for package name validation
Fix the regex for package name validation
2023-09-27 19:39:04 +00:00
Dongbo Wang 86e2757c1b Merged PR 27783: Update the regex for package name validation
Update the regex for package name validation
2023-09-27 17:03:18 +00:00
Dongbo Wang 667e8cc29f Merged PR 27772: Update ThirdPartyNotices.txt
Update ThirdPartyNotices.txt
2023-09-26 17:15:07 +00:00
Dongbo Wang 86ae2996fb [release/v7.4.0-preview.6] Remove the ref folder before running compliance (#20373) (#20375) 2023-09-26 09:23:43 -07:00
Dongbo WangandTravis Plunk b5b6204f10 [release/v7.4.0-preview.6] Updates RIDs used to generate component Inventory (#20370) (#20372)
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
2023-09-25 17:17:28 -07:00
Dongbo Wang bb951753c3 [release/v7.4.0-preview.6] Bump Microsoft.CodeAnalysis.CSharp from 4.7.0 to 4.8.0-2.final (#20321) (#20368) 2023-09-25 15:32:58 -07:00
Dongbo Wang ea80a15890 [release/v7.4.0-preview.6] Fix the release build by moving to the official .NET 8-rc.1 release build version (#20333) (#20365) 2023-09-25 14:28:03 -07:00
Dongbo Wang 4c096ce7ed [release/v7.4.0-preview.6] Update the experimental feature JSON files (#20335) (#20363) 2023-09-25 14:27:03 -07:00
Dongbo Wang 14f0809164 [release/v7.4.0-preview.6] Bump XunitXml.TestLogger from 3.1.11 to 3.1.17 (#20293) (#20364) 2023-09-25 13:11:34 -07:00
Dongbo Wang a092dad7c0 [release/v7.4.0-preview.6] Set experimental features to stable for 7.4 release (#20285) (#20362) 2023-09-25 13:10:28 -07:00
Dongbo Wang 769a039c43 [release/v7.4.0-preview.6] Update Microsoft.PowerShell.PSResourceGet to 0.9.0-rc1 (#20274) (#20361) 2023-09-25 13:09:39 -07:00
Dongbo Wang bcfdb27f6a [release/v7.4.0-preview.6] Revert changes to continue using BinaryFormatter for Out-GridView (#20300) (#20360) 2023-09-25 12:30:10 -07:00
Dongbo Wang 21600d6327 [release/v7.4.0-preview.6] Update .NET SDK to version 8.0.100-rc.1.23455.8 (#20269) (#20358) 2023-09-25 12:29:00 -07:00
Dongbo WangandAditya Patwardhan 094033c7c9 [release/v7.4.0-preview.6] Use fxdependent-win-desktop runtime for compliance runs (#20326) (#20359)
Co-authored-by: Aditya Patwardhan <adityap@microsoft.com>
2023-09-25 12:10:21 -07:00
Dongbo Wang 9f0044315d [release/v7.4.0-preview.6] Add mapping for mariner arm64 stable (#20213) (#20348) 2023-09-25 11:21:07 -07:00
Dongbo Wang 1f5e711787 [release/v7.4.0-preview.6] Bump xunit.runner.visualstudio from 2.5.0 to 2.5.1 (#20294) (#20357) 2023-09-25 11:08:36 -07:00
Dongbo Wang 3c66c99a70 [release/v7.4.0-preview.6] Bump JsonSchema.Net from 5.2.1 to 5.2.5 (#20225) (#20356) 2023-09-25 11:07:44 -07:00
Dongbo Wang 26fce61185 [release/v7.4.0-preview.6] Bump Microsoft.NET.Test.Sdk from 17.7.1 to 17.7.2 (#20185) (#20355) 2023-09-25 11:06:21 -07:00
Dongbo Wang c2621277bd [release/v7.4.0-preview.6] Bump Markdig.Signed from 0.32.0 to 0.33.0 (#20186) (#20354) 2023-09-25 10:54:06 -07:00
Dongbo Wang 3f96e9e2c0 [release/v7.4.0-preview.6] Bump JsonSchema.Net from 5.1.3 to 5.2.1 (#20193) (#20353) 2023-09-25 10:53:32 -07:00
Dongbo Wang ea9cf42d5d [release/v7.4.0-preview.6] Bump actions/checkout from 3 to 4 (#20205) (#20352) 2023-09-25 10:52:40 -07:00
Dongbo Wang 42f43a1d00 [release/v7.4.0-preview.6] Bump Microsoft.NET.Test.Sdk from 17.7.0 to 17.7.1 (#20130) (#20351) 2023-09-25 10:52:02 -07:00
Dongbo Wang c1b7226dd0 [release/v7.4.0-preview.6] Bump Microsoft.CodeAnalysis.CSharp from 4.7.0-2.final to 4.7.0 (#20146) (#20350) 2023-09-25 10:51:17 -07:00
Dongbo Wang f57878b784 [release/v7.4.0-preview.6] Remove the comment trigger from feedback provider (#20136) (#20346) 2023-09-25 10:49:57 -07:00
Dongbo Wang 90f64aa02c [release/v7.4.0-preview.6] Release build: Change the names of the PATs (#20307) (#20349) 2023-09-25 10:10:00 -07:00
Dongbo Wang 35d0be80df [release/v7.4.0-preview.6] Put the calls to Set-AzDoProjectInfo and Set-AzDoAuthToken` in the right order (#20306) (#20347) 2023-09-25 10:04:12 -07:00
Dongbo Wang 142b109551 Update README.md and metadata.json for v7.2.14 and v7.3.7 releases (#20277) 2023-09-19 11:29:23 -07:00
Dongbo Wang 264e30e6fc [release/v7.4.0-preview.6] Bump Microsoft.Management.Infrastructure (continued) (#20224) (#20262) 2023-09-11 17:38:08 -07:00
Dongbo Wang a0cfb3ca1f [release/v7.4.0-preview.6] Bump Microsoft.Management.Infrastructure to 3.0.0-preview.2 (#20226) (#20261) 2023-09-11 17:37:13 -07:00
Dongbo Wang 1c22f909ed [release/v7.4.0-preview.6] Enable vPack provenance data (#20220) (#20260) 2023-09-11 17:24:36 -07:00
Dongbo Wang d5e2ddb984 [release/v7.4.0-preview.6] Continued improvement to tests for release automation (#20182) (#20259) 2023-09-11 17:22:25 -07:00
Dongbo Wang 648461a336 [release/v7.4.0-preview.6] Start using new packages.microsoft.com cli (#20141) (#20258) 2023-09-11 17:21:19 -07:00
Dongbo Wang d9620c7bce [release/v7.4.0-preview.6] Add mariner arm64 to PMC release (#20176) (#20257) 2023-09-11 17:19:05 -07:00
Dongbo Wang 5ba9159454 [release/v7.4.0-preview.6] Fix typo donet to dotnet in build scripts and pipelines (#20122) (#20256) 2023-09-11 17:17:53 -07:00
Dongbo Wang 67310dfc2a [release/v7.4.0-preview.6] Skip the test on x86 as InstallDate is not visible on Wow64 (#20165) (#20255) 2023-09-11 16:50:09 -07:00
Dongbo Wang 08b6f61798 [release/v7.4.0-preview.6] Harden some problematic release tests (#20155) (#20254) 2023-09-11 16:45:46 -07:00
Dongbo Wang 7f44006a1b Remove the comment trigger from feedback provider (#20136) 2023-08-21 11:48:48 -07:00
Dongbo Wang 1f48d859d1 Add comment about pinned packages (#20096) 2023-08-09 18:36:13 +00:00
Dongbo Wang 6689c77513 Update README.md and metadata.json for release v7.2.13 and v7.3.6 (#19964) 2023-07-13 16:07:34 -07:00
Dongbo Wang da35b7c180 Update JsonSchema.Net from 4.1.2 to 4.1.3 (#19788) 2023-06-12 17:00:56 -07:00
Dongbo Wang b4f2e3ad8c Add an explicit manual stage for changelog update (#19551) 2023-04-20 17:34:32 -07:00
Dongbo Wang dadcf06565 Update the team member list in releaseTools.psm1 (#19544) 2023-04-20 15:56:31 -07:00
Dongbo Wang 4064754008 Merge the release branch of the pre-release v7.4.0-preview.3 to master 2023-04-20 11:54:22 -07:00
Dongbo Wang 72e4732874 Update README.md and metadata.json for release v7.4.0-preview.3 (#19542) 2023-04-20 11:28:19 -07:00
Dongbo Wang 2f8b74c45b Merged PR 25453: Update changelog for the v7.4.0-preview.3 release
Update changelog for the v7.4.0-preview.3 release
2023-04-19 23:39:32 +00:00