Commit graph

8751 commits

Author SHA1 Message Date
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
Travis Plunk 8c80d68598
Treat rebuild branches like release branches (#15099) 2021-04-01 12:44:30 -07:00
Anam Navied 0c974c6461
Update copy-props version in package.json (#15124) 2021-04-01 11:08:17 -07:00
xtqqczze e92201779d
Enable SA1001: Commas should be spaced correctly (#14171) 2021-03-30 15:17:17 -07:00
Staffan Gustafsson be7d36603d
Adding IArgumentCompleterFactory for parameterized ArgumentCompleters (#12605) 2021-03-25 17:06:40 -07:00
Steve Lee 5d0dadf19d
Fallback to CopyAndDelete() when MoveTo() fails due to an IOException (#15077) 2021-03-25 15:11:17 -07:00
Travis Plunk 177921ed63
Update WiX to 3.11.2 (#15097) 2021-03-24 17:31:06 -07:00
dependabot[bot] 44d450ae0e
Bump NJsonSchema from 10.3.11 to 10.4.0 (#15092)
Bumps NJsonSchema from 10.3.11 to 10.4.0.

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-24 14:59:18 -07:00
Travis Plunk 7acf70e023
Allow patching of preview releases (#15074) 2021-03-23 11:03:05 -07:00
xtqqczze b9f378d967
Refactor MultipleServiceCommandBase.AllServices (#15053) 2021-03-23 10:44:43 -07:00
dependabot[bot] 8cc9b114b7
Bump Newtonsoft.Json from 12.0.3 to 13.0.1 in /tools/packaging/projects/reference/Microsoft.PowerShell.Commands.Utility (#15085)
Bumps [Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json) from 12.0.3 to 13.0.1.
- [Release notes](https://github.com/JamesNK/Newtonsoft.Json/releases)
- [Commits](https://github.com/JamesNK/Newtonsoft.Json/compare/12.0.3...13.0.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-23 10:25:53 -07:00
dependabot[bot] d90b979534
Bump Newtonsoft.Json from 12.0.3 to 13.0.1 (#15084)
Bumps [Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json) from 12.0.3 to 13.0.1.
- [Release notes](https://github.com/JamesNK/Newtonsoft.Json/releases)
- [Commits](https://github.com/JamesNK/Newtonsoft.Json/compare/12.0.3...13.0.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-23 10:25:14 -07:00
Travis Plunk f1b8798264
Move bypass execution policy check after AppLocker Deny check (#15035) 2021-03-22 11:25:01 -07:00