Commit graph

8763 commits

Author SHA1 Message Date
Dongbo Wang a62c9d9443
Add the performance benchmark project for PowerShell performance testing (#15242) 2021-04-30 09:34:26 -07:00
Marc-André Moreau 8f8ddc3fb7
Add LoadAssemblyFromNativeMemory function to load assemblies from memory in a native PowerShell host (#14652) 2021-04-28 14:28:41 -07:00
xtqqczze 59715d5ba9
Use List.ConvertAll instead of LINQ (#15140) 2021-04-27 14:17:12 -07:00
Ilya 08e731398c
Enhance Remove-Item to work with OneDrive (Second) (#15260) 2021-04-27 12:31:12 -07:00
Steve Lee 1df4236e6c
Kill native processes in pipeline when pipeline is disposed on Unix (#15287) 2021-04-26 15:10:35 -07:00
Travis Plunk aae705a3ac
Make sure daily release tag does not change when retrying failures (#15286)
Co-authored-by: Aditya Patwardhan <adityap@microsoft.com>
2021-04-22 16:30:51 -07:00
Steve Lee fc1d5ef096
Default to MTA on Windows platforms where STA is not supported (#15106) 2021-04-22 08:38:13 -07:00
James Truher [MSFT] 2f0cc3b0f8
Improve messages and behavior when there's a problem in finding zip files (#15284) 2021-04-20 16:04:49 -07:00
Staffan Gustafsson b5e41e2587
Enable nullable for System.Management.Automation.Language.ITypeName (#14181) 2021-04-20 09:42:03 -04:00
xtqqczze 1b952a0cd5
Add documentation comments section to coding guidelines (#14316) 2021-04-20 09:15:54 -04:00
Brandon Wood 4d702e010d
Use GetValueOrDefault() for nullable PSLanguageMode (#13849) 2021-04-19 08:41:39 -04:00
Travis Plunk 720c615d04
Revert "Enhance Remove-Item to work with OneDrive (#14902)" (#15253)
This reverts commit fafc38fe5c.
2021-04-16 13:43:11 -07:00
Robert Holt 80f685f114
Add winget release script (#15050) 2021-04-16 14:20:32 -04:00
xtqqczze a562fa6bd8
Enable SA1008 Opening parenthesis should be spaced correctly (#14242) 2021-04-16 13:33:02 -04:00
Staffan Gustafsson 1feed0671a
Enable nullable for System.Management.Automation.Tracing.IMethodInvoker (#14157) 2021-04-16 13:25:15 -04:00
Staffan Gustafsson b2d2541d87
Enable nullablE for System.Management.Automation.Provider.IContentReader (#14151) 2021-04-16 13:23:49 -04:00
Travis Plunk 32543c1fda
Merge tag 'v7.2.0-preview.5'
[7.2.0-preview.5] - 2021-04-14

* Breaking Changes

- Make PowerShell Linux deb and RPM packages universal (#15109)
- Enforce AppLocker Deny configuration before Execution Policy Bypass configuration (#15035)
- Disallow mixed dash and slash in command line parameter prefix (#15142) (Thanks @davidBar-On!)

* Experimental Features

- `PSNativeCommandArgumentPassing`: Use `ArgumentList` for native executable invocation (breaking change) (#14692)

* Engine Updates and Fixes

- Add `IArgumentCompleterFactory` for parameterized `ArgumentCompleters` (#12605) (Thanks @powercode!)

* General Cmdlet Updates and Fixes

- Fix SSH remoting connection never finishing with misconfigured endpoint (#15175)
- Respect `TERM` and `NO_COLOR` environment variables for `$PSStyle` rendering (#14969)
- Use `ProgressView.Classic` when Virtual Terminal is not supported (#15048)
- Fix `Get-Counter` issue with `-Computer` parameter (#15166) (Thanks @krishnayalavarthi!)
- Fix redundant iteration while splitting lines (#14851) (Thanks @hez2010!)
- Enhance `Remove-Item -Recurse` to work with OneDrive (#14902) (Thanks @iSazonov!)
- Change minimum depth to 0 for `ConvertTo-Json` (#14830) (Thanks @kvprasoon!)
- Allow `Set-Clipboard` to accept empty string (#14579)
- Turn on and off `DECCKM` to modify keyboard mode for Unix native commands to work correctly (#14943)
- Fall back to `CopyAndDelete()` when `MoveTo()` fails due to an `IOException` (#15077)

* Code Cleanup

<details>

<summary>

<p>We thank the following contributors!</p>
<p>@xtqqczze, @iSazonov, @ZhiZe-ZG</p>

</summary>

<ul>
<li>Update .NET to <code>6.0.0-preview.3</code> (#15221)</li>
<li>Add space before comma to hosting test to fix error reported by <code>SA1001</code> (#15224)</li>
<li>Add <code>SecureStringHelper.FromPlainTextString</code> helper method for efficient secure string creation (#14124) (Thanks @xtqqczze!)</li>
<li>Use static lambda keyword (#15154) (Thanks @iSazonov!)</li>
<li>Remove unnecessary <code>Array</code> -&gt; <code>List</code> -&gt; <code>Array</code> conversion in <code>ProcessBaseCommand.AllProcesses</code> (#15052) (Thanks @xtqqczze!)</li>
<li>Standardize grammar comments in Parser.cs (#15114) (Thanks @ZhiZe-ZG!)</li>
<li>Enable <code>SA1001</code>: Commas should be spaced correctly (#14171) (Thanks @xtqqczze!)</li>
<li>Refactor <code>MultipleServiceCommandBase.AllServices</code> (#15053) (Thanks @xtqqczze!)</li>
</ul>

</details>

* Tools

- Use Unix line endings for shell scripts (#15180) (Thanks @xtqqczze!)

* Tests

- Add the missing tag in Host Utilities tests (#14983)
- Update `copy-props` version in `package.json` (#15124)

* Build and Packaging Improvements

<details>

<summary>

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

</summary>

<ul>
<li>Fix <code>yarn-lock</code> for <code>copy-props</code> (#15225)</li>
<li>Make package validation regex accept universal Linux packages (#15226)</li>
<li>Bump NJsonSchema from 10.4.0 to 10.4.1 (#15190)</li>
<li>Make MSI and EXE signing always copy to fix daily build (#15191)</li>
<li>Sign internals of EXE package so that it works correctly when signed (#15132)</li>
<li>Bump Microsoft.NET.Test.Sdk from 16.9.1 to 16.9.4 (#15141)</li>
<li>Update daily release tag format to  work with new Microsoft Update work (#15164)</li>
<li>Feature: Add Ubuntu 20.04 Support to install-powershell.sh (#15095) (Thanks @JustinGrote!)</li>
<li>Treat rebuild branches like release branches (#15099)</li>
<li>Update WiX to 3.11.2 (#15097)</li>
<li>Bump NJsonSchema from 10.3.11 to 10.4.0 (#15092)</li>
<li>Allow patching of preview releases (#15074)</li>
<li>Bump Newtonsoft.Json from 12.0.3 to 13.0.1 (#15084, #15085)</li>
<li>Update the <code>minSize</code> build package filter to be explicit (#15055)</li>
<li>Bump NJsonSchema from 10.3.10 to 10.3.11 (#14965)</li>
</ul>

</details>

* Documentation and Help Content

- Merge `7.2.0-preview.4` changes to master (#15056)
- Update `README` and `metadata.json` (#15046)
- Fix broken links for `dotnet` CLI (#14937)

[7.2.0-preview.5]: https://github.com/PowerShell/PowerShell/compare/v7.2.0-preview.4...v7.2.0-preview.5
2021-04-16 07:15:59 -07:00
Aditya Patwardhan 6588373235
Update README.md and metadata.json for 7.2.0-preview.5 release (#15228) 2021-04-14 21:59:11 -07:00
xtqqczze 4e073fdd3f
Avoid array allocations from GetDirectories/GetFiles. (#15167) 2021-04-15 08:16:26 +05:00
Robert Holt 5e8eca2719 Merged PR 15242: Add CHANGELOG for 7.2.0-preview.5 2021-04-14 23:49:49 +00:00
Steve Lee 33d1c124af
Add /Y switch to azcopy to suppress prompting for msixbundle upload (#15227) 2021-04-14 12:03:48 -07:00
MartinGC94 55d12ee76c
Add completion for Requires statements (#14596) 2021-04-14 10:26:48 -07:00
Aditya Patwardhan 4a7bea0082
Update .NET to 6.0.0-preview.3 (#15221) 2021-04-13 15:45:15 -07:00
Paul Higinbotham 046e0fea03
Fix SSH remoting connection hang with misconfigured endpoint (#15175) 2021-04-13 15:36:36 -07:00
Aditya Patwardhan 9fd399ca89
Add space before comma to hosting test to fix error reported by SA1001 (#15224) 2021-04-13 15:09:55 -07:00
Travis Plunk 272eb14464
Fix yarn-lock for copy-props (#15225) 2021-04-13 15:08:46 -07:00
Travis Plunk 3df4d8d567
Make Package validation Regex accept universal linux packages (#15226) 2021-04-13 15:07:57 -07:00
David Bar-On 20d917c086
Fix issue #12013 - not allow mixed dash and slash in command line parameter prefix (#15142) 2021-04-13 13:20:28 -07:00
Steve Lee 2f3f39906f
resolve merge conflict (#14969) 2021-04-12 20:11:50 -07:00
Steve Lee 44d5ce9e01
Use ProgressView.Classic if Virtual Terminal is not supported (#15048) 2021-04-12 16:40:29 -07:00
krishnayalavarthi 8a3e02dcf7
get-counter issue with -computer parameter (#15166)
* get-counter issue fixed

* Update src/Microsoft.PowerShell.Commands.Diagnostics/GetCounterCommand.cs

Co-authored-by: Krishna Yalavarthi <kryalava@microsoft.com>
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
2021-04-12 14:16:31 -07:00
xtqqczze a6abf16941
Add SecureStringHelper.FromPlainTextString (#14124) 2021-04-12 14:05:20 -07:00
Ilya 91e7298fd8
Use static lambda keyword (#15154) 2021-04-12 12:44:05 -07:00
Steve 8f5ae72f5d
Fix redundant iteration while splitting lines (#14851) 2021-04-12 10:23:12 -07:00
Ilya fafc38fe5c
Enhance Remove-Item to work with OneDrive (#14902) 2021-04-12 09:36:16 -07:00
Aditya Patwardhan e33a3c7acc
Add the missing tag in Host Utilities tests (#14983) 2021-04-12 09:32:54 -07:00
xtqqczze e118f7edb9
Use Unix line endings for shell scripts (#15180)
These changes fix [SC1017](https://github.com/koalaman/shellcheck/wiki/SC1017)
2021-04-12 09:32:18 -07:00
xtqqczze be9b14a296
Remove unnecessary Array -> List -> Array conversion in ProcessBaseCommand.AllProcesses (#15052) 2021-04-12 09:24:41 -07:00
Travis Plunk 49288e4289
Make Linux package universal. (#15109)
Co-authored-by: Aditya Patwardhan <adityap@microsoft.com>
2021-04-10 09:53:40 -07:00
dependabot[bot] 637912e050
Bump NJsonSchema from 10.4.0 to 10.4.1 (#15190)
Bumps NJsonSchema from 10.4.0 to 10.4.1.

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-10 09:50:03 -07:00
Travis Plunk 83f0bebcdb
Make MSI and EXE signing always copy to fix daily build (#15191) 2021-04-09 13:42:03 -07:00
Travis Plunk 75dc913aa4
Sign internals of EXE package so that it works correctly when signed (#15132)
Co-authored-by: Robert Holt <rjmholt@gmail.com>
2021-04-09 10:26:47 -07:00
PRASOON KARUNAN V 837c3e8f42
Change minimum depth to 0 for ConvertTo-Json (#14830)
* Make Depth default value to 0

* updating as per review comment
2021-04-08 12:53:32 -07:00
dependabot[bot] 99dab33c62
Bump Microsoft.NET.Test.Sdk from 16.9.1 to 16.9.4 (#15141)
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.9.1 to 16.9.4.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v16.9.1...v16.9.4)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-08 12:24:58 -07:00
Travis Plunk 3d49de134e
Update daily release tag format to work with new Microsoft Update work (#15164) 2021-04-06 12:09:59 -07:00
ZhiZe-ZG a8a7e045d8
Unified comment format (#15114) 2021-04-05 14:11:25 -07:00
Justin Grote 5021405caf
Feat: Add Ubuntu 20.04 Support to install-powershell.sh (#15095) 2021-04-05 13:21:21 -07:00
James Truher [MSFT] a520e2c982
Native invocation using ArgumentList (#14692)
Co-authored-by: Ilya <darpa@yandex.ru>
2021-04-01 14:54:10 -07:00
Steve Lee cf6876e716
Allow Set-Clipboard to accept empty string (#14579) 2021-04-01 13:03:19 -07:00
Steve Lee c008e3e930
Turn on and off DECCKM to modify keyboard mode for Unix native commands to work correctly (#14943) 2021-04-01 13:01:31 -07:00