Dongbo Wang
ad7278bbff
Make sure the assembly/library resolvers are registered at early stage ( #21361 )
2024-03-21 16:25:12 -07:00
Aditya Patwardhan
a145f47787
Bump to .NET 9 Preview 1 ( #21229 )
2024-02-16 03:15:11 +00:00
James Truher [MSFT]
77e8021256
Set experimental features to stable for 7.4 release ( #20285 )
2023-09-22 17:01:22 -07:00
Armaan Mcleod
d24285f437
Remove input text from the error message resulted by SecureString and PSCredential conversion failure ( #19977 )
2023-07-17 10:30:10 -07:00
Patrick Meinecke
066d7bff2c
Fix native executables not redirecting to file ( #19842 )
2023-06-23 12:16:18 -07:00
Aditya Patwardhan
ebe0b54340
Update to .NET 8 Preview 4 ( #19696 )
2023-06-21 15:17:22 -07:00
James Truher [MSFT]
c444645b09
Change how 'isPreview' is determined for default cmdlets tests ( #19650 )
2023-05-15 10:25:12 -07:00
James Truher [MSFT]
a533cefc8b
Change logic for testing missing or extra cmdlets. ( #19635 )
2023-05-11 14:07:56 -07:00
Steve Lee and James Truher [MSFT]
a153446a01
Add Get-SecureRandom cmdlet ( #19587 )
...
* Add `Get-SecureRandom` cmdlet
* update comments
* address Paul and Travis' comments
* Update test/powershell/Modules/Microsoft.PowerShell.Utility/Get-SecureRandom.Tests.ps1
Co-authored-by: James Truher [MSFT] <jimtru@microsoft.com >
* address codefactor
* address Ilya's feedback creating a base class for both cmdlets
* remove unused `using`
---------
Co-authored-by: James Truher [MSFT] <jimtru@microsoft.com >
2023-05-02 10:54:39 -07:00
Patrick Meinecke
2424ad83aa
Support byte stream piping between native commands and file redirection ( #17857 )
2023-04-27 17:17:32 -07:00
James Truher [MSFT]
a7898d2886
Harden 'All approved Cmdlets present' test ( #19530 )
2023-04-20 16:14:09 -07:00
James Truher [MSFT]
059b9524aa
WIP: Harden default command test. ( #19416 )
2023-04-06 23:24:44 +00:00
Dongbo Wang
a26a8d97c1
Increase the timeout when waiting for the event log ( #19264 )
2023-03-02 12:54:13 -08:00
Trey
91d8fb0367
Corrected some minor spelling mistakes ( #19176 )
2023-02-22 22:09:04 +05:00
Travis Plunk and Aditya Patwardhan
b2c4888ebb
Add Windows ARM64 CI ( #19040 )
...
* Add CI for win-arm64
* Add common function to test for windows arm64
* Update because string where items need investigation
---------
Co-authored-by: Aditya Patwardhan <adityap@microsoft.com >
2023-01-31 12:06:29 -08:00
Steve Lee
9ae18ab0d1
Change exec from alias to function to handle arbitrary arguments ( #18567 )
2022-11-17 12:14:27 -08:00
Steve Lee
918bb8c952
Make experimental feature PSExec stable ( #18045 )
2022-09-07 10:28:17 -07:00
WJKM
d75d3b6178
Add the ValidateNotNullOrWhiteSpace attribute ( #17191 )
2022-08-09 10:48:08 -07:00
Frode Flaten
9ccaf107a0
Fix enum-ranges for ValidateRange in proxy commands ( #17572 )
2022-07-20 08:50:18 +05:00
Travis Plunk
4e6909e7b8
Make Assembly Load Native test work on a FX Dependent Linux Install ( #17380 )
...
* Make Assembly Load Native test work on a FX Dependent Linux Install
* Update Assembly.LoadNative.Tests.ps1
2022-06-06 13:06:38 -07:00
Paul Higinbotham
a8d55851e0
Add the -ConfigurationFile command line parameter to pwsh to support local session configuration ( #17447 )
2022-06-06 12:12:53 -07:00
James Truher [MSFT]
65d8f11aeb
Update telemetry collecting with a few changes ( #17304 )
2022-05-16 17:10:51 -07:00
Joey Robichaud
b7ce3c568c
Fix parsing SemanticVersion build label from version string ( #16608 )
2021-12-17 09:39:26 -08:00
Keith Hill
b94dd91e74
Specify exe path as TargetObect for non-zero exit code ErrorRecord ( #16108 )
2021-10-14 14:47:54 -07:00
Aditya Patwardhan
3bb6b2736a
Update Ubuntu images to use Ubuntu 20.04 ( #15906 )
2021-08-30 13:56:52 -07:00
Dongbo Wang
403767d7f7
Fix a casting error when using $PSNativeCommandUsesErrorActionPreference ( #15993 )
2021-08-25 17:05:54 -07:00
Robert Holt
a4d14576b3
Make the native command error handling optionally honor ErrorActionPreference ( #15897 )
2021-08-24 15:27:22 -07:00
xtqqczze
055b7f3003
Fix CA1052 for public API to make classes static when they only have static methods ( #15775 )
2021-07-28 12:28:24 -07:00
James Truher [MSFT]
f8b9e8e9db
Create warnings when UTF7 is specified as an encoding ( #13430 )
2020-08-17 22:19:22 -07:00
xtqqczze
1f252f8bba
Wrap tests in pester blocks ( #12700 )
...
# PR Summary
Wrap tests in pester blocks to prepare for pesterv5
## PR Context
<!-- Provide a little reasoning as to why this Pull Request helps and why you have opened it. -->
## PR Checklist
- [x] [PR has a meaningful title](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission )
- Use the present tense and imperative mood when describing your changes
- [x] [Summarized changes](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission )
- [x] [Make sure all `.h`, `.cpp`, `.cs`, `.ps1` and `.psm1` files have the correct copyright header](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission )
- [x] This PR is ready to merge and is not [Work in Progress](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---work-in-progress ).
- If the PR is work in progress, please add the prefix `WIP:` or `[ WIP ]` to the beginning of the title (the `WIP` bot will keep its status check at `Pending` while the prefix is present) and remove the prefix when the PR is ready.
- **[Breaking changes](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#making-breaking-changes )**
- [x] None
- **OR**
- [ ] [Experimental feature(s) needed](https://github.com/MicrosoftDocs/PowerShell-Docs/blob/staging/reference/6/Microsoft.PowerShell.Core/About/about_Experimental_Features.md )
- [ ] Experimental feature name(s): <!-- Experimental feature name(s) here -->
- **User-facing changes**
- [x] Not Applicable
- **OR**
- [ ] [Documentation needed](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission )
- [ ] Issue filed: <!-- Number/link of that issue here -->
- **Testing - New and feature**
- [x] N/A or can only be tested interactively
- **OR**
- [ ] [Make sure you've added a new test if existing tests do not effectively test the code changed](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#before-submitting )
- **Tooling**
- [x] I have considered the user experience from a tooling perspective and don't believe tooling will be impacted.
- **OR**
- [ ] I have considered the user experience from a tooling perspective and enumerated concerns in the summary. This may include:
- Impact on [PowerShell Editor Services](https://github.com/PowerShell/PowerShellEditorServices ) which is used in the [PowerShell extension](https://github.com/PowerShell/vscode-powershell ) for VSCode (which runs in a different PS Host).
- Impact on Completions (both in the console and in editors) - one of PowerShell's most powerful features.
- Impact on [PSScriptAnalyzer](https://github.com/PowerShell/PSScriptAnalyzer ) (which provides linting & formatting in the editor extensions).
- Impact on [EditorSyntax](https://github.com/PowerShell/EditorSyntax ) (which provides syntax highlighting with in VSCode, GitHub, and many other editors).
2020-05-23 13:24:53 +00:00
Thomas Larsen
62bb436e71
Change CimCmdlets to use AliasAttribute ( #12617 )
2020-05-22 12:56:47 -07:00
xtqqczze
f4382202ae
Use correct casing for cmdlet name and cmdlet parameter name in *.ps1 files ( #12584 )
2020-05-07 17:00:30 +05:00
Dongbo Wang
e741dc58dd
Discover assemblies loaded by 'Assembly.Load(byte[])' and 'Assembly.LoadFile' ( #12203 )
...
* Fix regression: pwsh should discover assemblies loaded by 'Assembly.Load(byte[])' and 'Assembly.LoadFile'
2020-03-28 20:25:59 +05:00
Steve Lee
b7cb335f03
Update copyright notice to latest guidance ( #12190 )
2020-03-24 11:08:37 -07:00
James Truher [MSFT]
4a0eda7fa9
Handle cases where CustomEvent was not initially sent ( #11807 )
2020-02-11 11:40:43 -08:00
mikeTWC1984
69bf7043c0
Update CmsCommands to use Store vs cert provider ( #11643 )
2020-02-06 15:38:17 -08:00
Brendan Burns and Ilya
127fec5eb9
Refactor and implement Restart-Computer for Un*x and macOS ( #11319 )
...
Co-authored-by: Ilya <darpa@yandex.ru >
2020-02-03 14:57:17 -08:00
James Truher [MSFT]
bb8dbb953f
Ensure that types referenced by PowerShellStandard are present ( #10634 )
2020-02-03 12:57:06 -08:00
Dongbo Wang
a4c32bc337
Revert the PRs that made DBNull.Value and NullString.Value treated as $null ( #11648 )
2020-01-29 14:13:05 -08:00
xtqqczze
920b671fb4
Unify pester test syntax for the arguments of -BeOfType ( #11558 )
2020-01-24 11:00:37 -08:00
xtqqczze
6d97b3a4a4
Correct case of $IsCoreCLR special variable
2020-01-13 19:27:48 +00:00
xtqqczze
72d52b7d08
Correct case of $IsMacOS special variable
2020-01-13 19:26:54 +00:00
xtqqczze
bb58e2aab6
Correct case of $false special variable
2020-01-13 19:25:35 +00:00
xtqqczze
47a3b4e293
Correct case of $true special variable
2020-01-13 19:25:09 +00:00
xtqqczze
743983390e
Update pester syntax to v4 ( #11544 )
...
* Capitalize 'Should' command and fix whitespace
```powershell
$_ -ireplace '\s?\|\s?should\b',' | Should'
```
* Capitalise and apply hyphen to 'Not' parameter
```powershell
$_ -ireplace '(\| Should) not\b','$1 -Not'
```
* Capitalise and apply hyphen to 'Be' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?) -?be\b','$1 -Be'
```
* Capitalise and apply hyphen to 'BeExactly' parameter
$_ -ireplace '(\| Should(?: -Not)?) -?beexactly\b','$1 -BeExactly'
* Capitalise and apply hyphen to 'BeGreaterThan' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?) -?begreaterthan\b','$1 -BeGreaterThan'
```
* Use 'BeTrue' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?) -Be\s\$?true\b','$1 -BeTrue'
```
* Use 'BeFalse' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?) -Be\s\$?false\b','$1 -BeFalse'
```
* Capitalise and apply hyphen to 'Match' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?)\s-?match\b','$1 -Match'
```
* Capitalise and apply hyphen to 'Throw' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?)\s-?throw\b','$1 -Throw'
```
* Capitalise and apply hyphen to 'BeNullOrEmpty' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?)\s-?benullorempty\b','$1 -BeNullOrEmpty'
```
* Capitalise 'Because' parameter
```powershell
$_ -ireplace '\s-because\b',' -Because'
```
* Fix 'BeNullOrEmpty'
2020-01-11 20:41:59 +05:00
Ilya
99cf9fd859
Re-balance CI tests ( #11420 )
2020-01-05 13:01:42 +05:00
Ilya
b221c2afa2
Correct pwsh run ( #11486 )
2020-01-05 12:17:41 +05:00
Ilya
95c472a8c2
Add native binary resolver ( #11032 )
2019-12-09 12:03:53 -08:00
Ilya
42f21ae6a0
Cleanups in command discovery ( #10815 )
...
* Enable nullable, make minor cleanups, add a test
* Reduce allocations in GetAliasTable()
* Remove searching by extensions on Unix
2019-12-03 11:23:36 +05:00
Travis Plunk
3cdab0d18d
Add Unblock-File for macOS ( #11137 )
2019-12-02 17:51:36 -08:00