Commit Graph
3545 Commits
Author SHA1 Message Date
Aditya Patwardhan cc0d20aa08 Bump .NET to 5.0.0-preview.4 (#12507) 2020-04-28 14:18:16 -07:00
dependabot-preview[bot] 7c1fa6c799 Bump Microsoft.ApplicationInsights from 2.13.1 to 2.14.0 (#12479) 2020-04-28 13:18:31 -07:00
dependabot-preview[bot]andTravis Plunk ee1934b1ce Bump PackageManagement from 1.4.6 to 1.4.7 in /src/Modules (#12506)
* Bump PackageManagement from 1.4.6 to 1.4.7 in /src/Modules

Bumps PackageManagement from 1.4.6 to 1.4.7.

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

* Update files.wxs

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
2020-04-28 22:59:16 +05:00
Jack Casey 767899d47b Fix inconsistent exception message in -replace operator (#12388) 2020-04-28 10:45:10 -07:00
Ilya 86b6a9d5ca Set correct PSProvider full name (#11813) 2020-04-27 16:24:42 -07:00
Steve Lee 23b1dd46ae Support passing PSPath to native commands (#12386) 2020-04-27 14:14:57 -07:00
Ilya 1a7692fd1a Use new value for TargetFramework as net5.0 instead of netcoreapp5.0 (#12486) 2020-04-27 08:40:09 -07:00
Joel Sallow (/u/ta11ow) ba53621894 Allow shorter signed hex literals with appropriate type suffixes (#11844) 2020-04-20 16:51:40 -07:00
dependabot-preview[bot] c41c39be2a Bump System.IO.Packaging (#12365) 2020-04-19 21:39:21 -07:00
dependabot-preview[bot] 022c14917f Bump Markdig.Signed from 0.18.3 to 0.20.0 (#12379)
Bumps [Markdig.Signed](https://github.com/lunet-io/markdig) from 0.18.3 to 0.20.0.
- [Release notes](https://github.com/lunet-io/markdig/releases)
- [Changelog](https://github.com/lunet-io/markdig/blob/master/changelog.md)
- [Commits](https://github.com/lunet-io/markdig/compare/0.18.3...0.20.0)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-19 11:00:38 +05:00
Ilya 264bcb3fda Update UseNewEnvironment parameter behavior of Start-Process cmdlet on Windows (#10830) 2020-04-17 17:19:13 -07:00
Aditya Patwardhan 6d44fa9977 Bump to .NET 5 Preview 3 pre-release (#12353) 2020-04-17 14:22:23 -07:00
dependabot-preview[bot] 5f210c7eeb Bump PowerShellGet from 2.2.3 to 2.2.4 in /src/Modules (#12342)
Bumps [PowerShellGet](https://github.com/PowerShell/PowerShellGet) from 2.2.3 to 2.2.4.
- [Release notes](https://github.com/PowerShell/PowerShellGet/releases)
- [Commits](https://github.com/PowerShell/PowerShellGet/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-04-17 08:05:52 +05:00
Andrew 0c695376b7 Fix WinCompat module loading to treat Core edition modules higher priority (#12269) 2020-04-16 16:57:55 -07:00
Eugene Samoylov 07620b4b79 Add -Shuffle switch to Get-Random command (#11093) 2020-04-15 10:23:25 -07:00
Reece DunhamandTravis Plunk 8b3937ecfe CodeFactor cleanup (#12251)
* Code cleanup

Signed-off-by: Reece Dunham <me@rdil.rocks>

* whoops

* Update src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionOperations.cs

Co-Authored-By: Travis Plunk <travis.plunk@microsoft.com>

Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
2020-04-14 14:34:53 -07:00
Andrew 14487bf85d Make GetWindowsPowerShellModulePath compatible with multiple PS installations (#12280)
Add additional check for each component of PSModulePath (that is set for WinPS process) - if it is has pwsh.exe in the parent directory, then it is considered another PS Core installation and this location is also filtered out.
2020-04-14 11:08:01 +05:00
Paul Higinbotham 9a92c62d30 Add null check for Windows PowerShell install path (#12296)
Some Azure images have run into this problem where Start-Job fails even when running in pwsh child process rather than Windows PowerShell child. Fix is to guard against the missing registry entry.
2020-04-14 11:05:26 +05:00
Chris Gardner 8869e7a4cd Specifying an alias and -Syntax to Get-Command returns the aliased commands syntax (#10784)
@ChrisLGardner Thank you for your contribution and your patience.
2020-04-13 11:01:08 -07:00
Ilya b1e998046e Fix NRE in csv commands (#12281) 2020-04-08 16:28:54 -07:00
Christoph Bergmeister [MVP] 622eb4cf02 Upgrade to .NET 5 Preview 2 (#12250) 2020-04-07 17:39:51 -07:00
Michael Klement 5f28df120a In local invocations do not require -PowerShellVersion 5.1 for Get-FormatData in order to see all format data. (#11270) 2020-04-07 17:37:13 -07:00
Bryan Berns 5f89a10f5b Added Support For Big Endian UTF-32 (#11947) 2020-04-07 14:33:15 -07:00
Paul Higinbotham 7837a536eb Fix possible race that leaks PowerShell object dispose in ForEach-Object -Parallel (#12227) 2020-04-07 14:31:04 -07:00
Jack Casey 46071b7ff9 Add -FromUnixTime to Get-Date to allow Unix time input (#12179) 2020-04-07 13:25:03 -07:00
Keith Hill 8d711542e0 Change progress fg & bg colors to provide better contrast (#11455) 2020-04-03 09:13:41 +05:00
dependabot-preview[bot] 6b5d6a0075 Bump PSReadLine from 2.0.0 to 2.0.1 (#12243) 2020-04-01 16:22:37 -07:00
dependabot-preview[bot] 41fef6c4f7 Bump NJsonSchema from 10.1.11 to 10.1.12 (#12230)
Bumps [NJsonSchema](https://github.com/RicoSuter/NJsonSchema) from 10.1.11 to 10.1.12.
- [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-04-01 12:08:55 -07:00
Paul Higinbotham a4c996d425 Fix foreach parallel when current drive is not available (#12197) 2020-03-31 20:33:06 +05:00
Dongbo Wang c0c17ded03 Do not wrap return result to PSObject when converting ScriptBlock to delegate (#10619)
This is a breaking change for the delegate types with the object return type:

Before this change, the returned object will always be an PSObject instance.
After this change, the returned object is the underlying object, which could still be an PSObject if that's what the script actually returns.
2020-03-30 21:46:12 +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
Joel Sallow (/u/ta11ow) dfe9955346 Don't write DNS resolution errors on Test-Connection -Quiet (#12204) 2020-03-28 15:50:32 +05:00
Dongbo Wang 1ec7c826f0 Use dedicated threads to read the redirected output and error streams from the child process for out-of-proc jobs (#11713) 2020-03-28 15:44:23 +05:00
Next Turn 175efca71f Fix Service.cs to not modify collection while enumerating it (#11851) 2020-03-26 11:17:58 -07:00
Paul Higinbotham 668d72c4af Clean up the IPC named pipe on PowerShell exit (#12187) 2020-03-26 09:47:33 -07:00
Shayde Nofziger 238cb5c8dc Fix erroneous comment in tokenizer.cs (#12206)
The BigInteger NumberSuffixFlags enum is 'N', not 'I'. Fix the comment to indicate it as such.
2020-03-26 13:18:33 +05:00
Aditya Patwardhan 7193800bc2 Allow case insensitive paths for determining PSModulePath (#12192)
* Allow case insensitive comparison of paths for determining PSModulePath

* Address codefactor issue
2020-03-25 12:11:06 -07:00
Steve Lee f23be437af Fix terms checker issues (#12189) 2020-03-24 11:38:45 -07:00
Steve Lee b7cb335f03 Update copyright notice to latest guidance (#12190) 2020-03-24 11:08:37 -07:00
Joel Sallow (/u/ta11ow) f8fb77052f Fix <img /> detection regex in web cmdlets (#12099) 2020-03-24 10:51:55 -07:00
Aditya Patwardhan 3c81de6d26 Add PowerShell version 7.0 to compatible version list (#12184) 2020-03-24 10:49:54 -07:00
Kevin Locke 68442a33e5 Add documentation for WebResponseObject and BasicHtmlWebResponseObject properties (#11876) 2020-03-23 15:13:47 -07:00
Paul Higinbotham cce214e884 Implement ForEach-Object -Parallel runspace reuse (#12122)
* Implement foreach parallel runspace reuse

* Change runspace dispose

* Refactor runspace reset check

* Fix race condition.

* Fix CodFactor issues

* Implement -UseNewRunspace parameter switch, add tests

* Fix Codacy error
2020-03-23 14:00:43 -07:00
dependabot-preview[bot] 78d7a90bdd Bump NJsonSchema from 10.1.8 to 10.1.11 (#12166)
Bumps [NJsonSchema](https://github.com/RicoSuter/NJsonSchema) from 10.1.8 to 10.1.11.
- [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-03-20 12:22:46 -07:00
Steve Lee 495dea0783 Move to .NET 5 preview.1 (#12140) 2020-03-19 11:27:13 -07:00
Damir Ainullin 5da06978b1 Set correct priority for ?: operator (#12075) 2020-03-19 08:54:39 +05:00
Dongbo Wang c737f3162c Fix NullReferenceException when binding common parameters of type 'ActionPreference' (#12124) 2020-03-18 23:18:21 +05:00
Ilya 43e0e1a1c5 Fix default formatting for deserialized MatchInfo (#11728)
MatchInfo class has ToEmphasizedString() member method to color output line.
In remote scenario MatchInfo class is deserialized as Deserialized.Microsoft.PowerShell.Commands.MatchInfo without the method. As result default formating in remote scenario show nothing.

The fix is to directly output Line property.
2020-03-18 18:43:01 +05:00
Ilya 8ebff6a2a4 Use async streams in Invoke-RestMethod (#11095) 2020-03-18 18:40:35 +05:00
Ilya b5d4739b2a Use span-based overloads (#11884) 2020-03-18 18:38:55 +05:00