Commit Graph
8232 Commits
Author SHA1 Message Date
xtqqczze dd85bd1178 Use 'is' operator instead of 'as' operator (#13287) 2020-08-10 09:07:31 +05:00
Dongbo Wang 4214800690 Refresh and enable the ComInterop code in PowerShell (#13304) 2020-08-07 16:24:10 -07:00
Steve Lee 511858a267 Make $ErrorActionPreference not affect stderr output of native commands (#13361) 2020-08-07 14:19:17 -07:00
Sergey Vasin fe2019b054 Update pwsh help for -InputFormat parameter (#13355) 2020-08-07 12:16:02 +05:00
Robert Holt ef7c7d60a6 Revert "Add password confirmation in Get-Credential (#12782)" (#13372)
This reverts commit a6bd47f031.
2020-08-07 12:11:16 +05:00
xtqqczze 87b2581dd2 Change SwitchParameters from fields to properties (#13291) 2020-08-06 15:29:17 -07:00
dependabot-preview[bot] d4e047ce45 Bump PSReadLine from 2.0.2 to 2.0.4 (#13240) 2020-08-06 11:17:30 -07:00
xtqqczze 9df6159192 Update build documentation for Visual Studio 2019 dependency (#13336) 2020-08-06 10:29:05 -07:00
dependabot-preview[bot] ea966b495e Bump Microsoft.CodeAnalysis.CSharp from 3.6.0 to 3.7.0 (#13360) 2020-08-06 10:27:10 -07:00
dependabot-preview[bot] 8bbd86ddab Bump Microsoft.NET.Test.Sdk from 16.6.1 to 16.7.0 (#13364) 2020-08-06 10:26:12 -07:00
Christopher Yeleighton 8626937ac4 Change "operable" to "executable" (#13281)
* Change "operable" to "executable" in a resource string
2020-08-06 13:02:43 +05:00
Thomas Nieto bedd3bc287 Remove AssemblyInfo property from list views (#13331) 2020-08-05 12:17:09 -07:00
xtqqczze aa43d867af Switch to MIT license for files copied from Roslyn (#13305) 2020-08-05 10:51:57 -07:00
dependabot-preview[bot] 2b4d147be7 Bump xunit.runner.visualstudio from 2.4.2 to 2.4.3 (#13343) 2020-08-05 10:09:48 -07:00
Dongbo Wang 63cf0c330c Allow explicitly specified named parameter to supersede the same one from hashtable splatting (#13162)
Allow explicitly specified named parameter to supersede the same one from hashtable splatting.
The work is done in parameter binder, so that parameters can be resolved to cover a parameter's official name, alias name, and unambiguous partial prefix name.

The changes covers covers Hashtable splatting in 3 scenarios:

- Cmdlet or advanced script invocation;
- Simple function invocation;
- ScriptBlock.GetPowerShell(...), where the script block contains command invocation only and uses Hashtable splatting.

Some code refactoring is done to ParameterBinderController to avoid redundant code being duplicated in CmdletParameterBinderController and ScriptParameterBinderController.
2020-08-05 10:59:53 +05:00
Dongbo Wang ada1b36ab6 Increase the timeout of Windows daily build to 90 minutes (#13354) 2020-08-05 10:39:42 +05:00
Christopher Yeleighton 7ed43d9c16 HelpSystem: Improve the wording of inline comments (#13274) 2020-08-04 15:11:10 -07:00
Joel Sallow (/u/ta11ow) 6aa08f9559 Improve BigInteger casting behaviours (#12629) 2020-08-04 10:45:36 +05:00
Travis Plunk 738496dc72 Use authenticode cert for msix signing (#13330) 2020-08-03 19:23:22 -07:00
Shri Ram K S 9ceee3e52f Fix Get-Acl -LiteralPath "HKLM:Software\Classes\*" behaviour (#13107)
* Fix #11566 bug

Add pester test for Get-Acl cmdlet

* Replace -pending parameter with -skip

* Fix test failing in Linux and MacOS
2020-07-31 16:44:45 -07:00
xtqqczze 4597b41396 Use is not syntax where appropriate and remove unnecessary parentheses (#13323) 2020-07-31 16:41:59 -07:00
Robert Holt 5abcd5854e Revert "Add action to label size of PR" (#13325) 2020-07-31 11:06:14 -07:00
Dongbo Wang 4464d1b414 Add DefaultVisit method to the visitor interface and class (#13258) 2020-07-31 10:16:59 -07:00
Ilya 58b91a89b6 Fix conflicting shorthand switch -s (sta) for pwsh (#13262) 2020-07-31 09:40:42 -07:00
Steve Lee 99b3bfaa34 Change Read-Host -MaskInput to use existing SecureString path, but return as plain text (#13256) 2020-07-30 22:16:37 -07:00
xtqqczze 2eade89f25 Remove unreachable code in CustomShellCommands.cs (#13316) 2020-07-30 17:59:11 -07:00
Travis Plunk 2398185447 Add action to label the size of a PR (#13321) 2020-07-30 16:49:38 -07:00
Dongbo Wang 4b9b0788ed Revert "Use is null syntax (#13277)" (#13322)
This reverts commit 6c03776d74.
2020-07-30 16:06:38 -07:00
Reece Dunham fd05d1af93 Update the dependabot configuration to version 2 (#13230) 2020-07-30 10:08:18 -07:00
xtqqczze 7beec89f50 Add copyright header to .editorconfig and update files (#13306) 2020-07-30 09:47:21 -07:00
xtqqczze 6c03776d74 Use is null syntax (#13277)
Replace `== null` with `is null`
2020-07-30 18:04:03 +05:00
Dongbo Wang 1f904e47d4 Make the failing test pending to unblock PR CIs (#13310)
* Mark Test-Connection tests as pending
2020-07-30 12:48:53 +05:00
Dave Goldman 49e432db7a Fixing typo in Out-File.cs and Out-Printer.cs (#13298) 2020-07-29 11:14:16 -07:00
Tasnim Zotder 7f9b118dc0 Grammar correction of Readme.md and other docs (#13269) 2020-07-29 22:23:09 +05:00
Ilya 6dec823077 Fix Test-XUnitTestResults function (#13270) 2020-07-29 22:17:46 +05:00
Dongbo Wang 74ddc3e8a1 Remove ComEnumerator as COM objects using IEnumerator is now supported in dotnet 5.0 (#13259) 2020-07-29 22:12:00 +05:00
Aditya Patwardhan f91e78ad69 Add default help content to the assets folder (#13257)
* Add default help content to the assets folder
* Reformatted and removed TechNet reference
2020-07-26 11:53:56 -07:00
Dongbo Wang cfb1952fd2 Use temp personal path at Runspace startup when env 'HOME' not defined (#13239) 2020-07-23 10:24:42 -07:00
xtqqczze 6ca0024db9 Fix SA1026CodeMustNotContainSpaceAfterNewKeywordInImplicitlyTypedArrayAllocation (#13249)
See https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1026.md
2020-07-23 22:19:15 +05:00
Dongbo Wang f6f966b3dc Fix Invoke-Command to detect recursive call of the same history entry (#13197) 2020-07-23 09:11:25 -07:00
Shri Ram K S a6bd47f031 Add password confirmation in Get-Credential (#12782)
* Add parameter -ReEnterPassword to prompt user to re-enter the password for confirmation

* Add new public overload function PromptForCredential
2020-07-22 19:13:42 +05:00
github-actions[bot] 9c396aa0ea Update .NET SDK version from 5.0.100-preview.7.20366.2 to 5.0.100-preview.7.20366.15 (#13200)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2020-07-22 18:53:33 +05:00
Brian Cristante 66e7baddef Add "GitHub Actions Python builds" to ADOPTERS.md (#13228) 2020-07-21 14:54:32 -07:00
Ilya e88e8bd297 Set C# language version to preview/9.0 (#13090) 2020-07-21 12:34:08 -07:00
Kirk Munro 472943347d Add -Runspace parameter to all *-PSBreakpoint cmdlets (#10492) 2020-07-21 11:48:54 -07:00
James Truher [MSFT] 9acef7d41f Use PowerShell Core for build and test of package in CI build (#13223) 2020-07-21 09:43:53 -07:00
Tyler James Leonhardt 8bea610865 Remove rcedit dependency, move daily ico dependency to props file (#13123) 2020-07-21 07:53:51 -07:00
dependabot-preview[bot] fdf5ddd0d5 Bump NJsonSchema from 10.1.23 to 10.1.24 (#13214)
Bumps [NJsonSchema](https://github.com/RicoSuter/NJsonSchema) from 10.1.23 to 10.1.24.
- [Release notes](https://github.com/RicoSuter/NJsonSchema/releases)
- [Commits](https://github.com/RicoSuter/NJsonSchema/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-21 08:43:24 +05:00
Ilya 8c22e5f7d0 Change exe '-inputformat' switch prefix '-in' to '-inp' to fix conflict with '-interactive' (#13205) 2020-07-20 12:16:00 -07:00
xtqqczze 2c18386d79 Avoid usage of do statement to create an infinite loop (#13137)
* Autofix RCS1063
2020-07-20 09:23:14 +05:00