Commit Graph
314 Commits
Author SHA1 Message Date
Dongbo Wang f9106ae7fe 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-04-20 13:29:32 -07:00
Andrew 07221e3dc5 Miscellaneous minor updates to WinCompat (#11980)
* Filter PSModulePath when starting PS 5.1. Removing PS-Core-specific paths from PSModulePath of WinCompat process (Windows PS).
* Make implicit WinCompat respect NoClobber and Scope parameters
* Add ErrorAction.Ignore when searching for WinPSCompatSession
# Conflicts:
#	src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs
2020-04-20 13:21:23 -07:00
Steve Lee 8830011b34 Fix ConciseView where error message is wider than window width and doesn't have whitespace (#11880)
# Conflicts:
#	src/System.Management.Automation/FormatAndOutput/DefaultFormatters/PowerShellCore_format_ps1xml.cs
#	test/powershell/engine/Formatting/ErrorView.Tests.ps1
2020-04-20 13:17:31 -07:00
Steve Lee f587d6a796 Fix ConciseView to not show the line information within the error messages (#11952) 2020-02-26 16:14:48 -08:00
James Truher [MSFT] 4b152d15d1 Make sure to test whether we skip a test using consistent logic (#11892) 2020-02-19 15:40:14 -08:00
Aditya Patwardhan fb3ac87850 Update Get-PlatformInfo helper and tests for Debian 10, 11 and CentOS 8 (#11842)
# Conflicts:
#	test/powershell/Modules/Microsoft.PowerShell.Management/Test-Connection.Tests.ps1
#	test/powershell/Modules/PSDesiredStateConfiguration/MOF-Compilation.Tests.ps1
2020-02-13 18:54:19 -08:00
James Truher [MSFT] 600f058080 Handle cases where CustomEvent was not initially sent (#11807) 2020-02-11 13:46:08 -08:00
Dongbo Wang 16bfd1e5d7 Fix how COM objects are enumerated (#11795) 2020-02-11 13:46:08 -08:00
Paul Higinbotham a04276af61 Fix Invoke-Command missing error on session termination. (#11586) 2020-02-11 13:46:08 -08:00
Ilya ebf6abe294 Correct pwsh run (#11486)
# Conflicts:
#	test/powershell/Modules/Microsoft.PowerShell.Core/CompatiblePSEditions.Module.Tests.ps1
2020-02-10 13:16:15 -08:00
Steve Lee fe4e9f0141 Fix unnecessary trimming of line resulting in incorrect indexi… (#11670) 2020-02-10 13:12:08 -08:00
Dongbo Wang 75cbd314b1 Do not resolve types from assemblies that are loaded in separate AssemblyLoadContext (#11088) 2020-02-07 16:16:33 -08:00
Dongbo Wang d99b325861 Revert the PRs that made DBNull.Value and NullString.Value treated as $null (#11584) 2020-01-14 16:47:34 -08:00
James Truher [MSFT] 5e88662794 Test fixes for failing tests (#11541) 2020-01-14 12:23:10 -08:00
Paul Higinbotham f4c759c42f Various test fixes for debugger and remoting (#11528) 2020-01-14 12:22:30 -08:00
Ilya 67fb8f17a4 Port GetProcessorArchitecture() (#11046) 2020-01-14 12:07:37 -08:00
Thomas Nieto 4279500997 Remove RequireLicenseAcceptance default value (#11512) 2020-01-09 16:03:35 -08:00
Paul Higinbotham 90ac0cf85a Fix SSH remoting test to work on all platforms (#11500) 2020-01-09 16:02:27 -08:00
Steve Lee fdcf087654 Don't format exceptions that aren't ErrorRecords (#11415)
* In one of the previous PRs for ConciseView, System.Exception was incorrectly added to the typenames handled by the ErrorRecord formatting. This results in just Exception objects written to the console to not be rendered since the ErrorRecord formatting didn't handle this situation. Fix is to remove the line to add that type putting it back to how it was previously. 

* Also made the handling of ErrorRecord a bit more robust just in case Exception.Message doesn't exist nor a Message property.
2020-01-09 15:59:06 -08:00
Steve Lee c9d64597af Add trailing line number to filename for ConciseView (#11391) 2020-01-09 15:57:25 -08:00
Steve Lee eb80aeaeae Move Set-StrictMode to outer scriptblock for ErrorView (#11381) 2020-01-09 15:40:53 -08:00
Aditya Patwardhan 94b215d3dd Fix test failing when UnixStat feature is disabled (#11370) 2020-01-09 15:39:57 -08:00
Dongbo Wang c4f0a13da0 Fix a regression in formatting caused by the FirstOrDefault primitive added in 7.0.0-Preview1 (#11258) 2019-12-12 16:50:07 -08:00
Steve Lee fee57e1cdc Make approved features non-experimental (#11303)
# Conflicts:
#	src/System.Management.Automation/engine/ExperimentalFeature/ExperimentalFeature.cs
2019-12-10 16:05:15 -08:00
Steve Lee 899c3348a2 Update ConciseView to use TargetObject if applicable (#11075) 2019-12-10 16:03:51 -08:00
Steve Lee 6dd63095b4 Update setting PSModulePath to concatenate the process + machine env var (#11276) 2019-12-10 15:55:40 -08:00
Ilya 5df5ac8fab Add native binary resolver (#11032) 2019-12-10 15:55:40 -08:00
Travis Plunk 9bb1504090 Add Unblock-File for macOS (#11137) 2019-12-04 14:56:34 -08:00
David Smatlak 367012b2ae Fixes FWLinks for PS7 online help documents (#11071) 2019-12-04 14:56:32 -08:00
Andrew b218e6f6cc Support using non-compatible Windows PowerShell modules in PowerShell Core (#10973) 2019-11-18 10:44:55 -08:00
Steve Lee 2e553038c5 Allow pwsh to inherit $env:PSModulePath and enable powershell.exe to start correctly (#11057) 2019-11-15 17:29:04 -08:00
James Truher [MSFT] fe712f8de2 Experimental Feature: Provide Unix stat information in filesystem output (#11042) 2019-11-15 17:26:11 -08:00
Paul Higinbotham bd0e30dec1 Fix Start-Job working directory path with trailing back slash (#11041) 2019-11-15 17:05:27 -08:00
Steve Lee 2a45ccc787 Fix ConciseView to show Activity instead of myCommand (#11007)
ConciseView shows MyCommand as the prefix to the error message, but for a scriptblock, MyCommand is the whole scriptblock. Fix is to use CategoryInfo.Activity if available first. Also handle case where it's a script function by seeing if it's a command and showing MyCommand in that case rather than the Activity.
2019-11-10 16:21:10 +05:00
Steve Lee 7ddfb825e4 Add back Get-Counter cmdlet for Windows (#10933) 2019-11-05 16:48:11 -08:00
Steve LeeandIlya b74a26bb91 Added cross-platform Get-Clipboard and Set-Clipboard (#10340)
Co-Authored-By: Ilya <darpa@yandex.ru>



Co-Authored-By: Ilya <darpa@yandex.ru>
2019-11-04 11:28:58 -08:00
Steve Lee 6882ad56fd Add back Out-Printer command (#10906) 2019-11-01 11:27:12 -07:00
Steve Lee 4b9c2b2008 Fix Start-Job -WorkingDirectory with whitespace (#10951) 2019-11-01 11:09:00 -07:00
Dongbo Wang 8749db9b81 Improve processing of the powershell built-in type data from 'types.ps1xml', 'typesV3.ps1xml' and 'GetEvent.types.ps1xml' (#10898) 2019-11-01 10:36:05 -07:00
Steve Lee ca68d9dbc5 Add GraphicalHost assembly to enable Out-GridView, Show-Command, and Get-Help -ShowWindow (#10899) 2019-11-01 10:05:32 -07:00
PRASOON KARUNAN V 5a76137d14 Take ComputerName via Pipeline in Get-HotFix (#10852)
* add process record for Get-hotfix
* update new FWLink
2019-11-01 08:02:19 +05:00
Ilya 46957e54d0 Set working directory to current directory in Start-Job (#10920) 2019-10-30 14:22:45 -07:00
Steve Lee 0b12ea057a Add back Update-List command (#10922) 2019-10-30 11:05:30 -07:00
Sean Wheeler 0faa60168b Update FWLink Id for Clear-RecycleBin (#10925) 2019-10-29 22:14:09 +05:00
Steve Lee ca1b6fb4c5 Add back Clear-RecycleBin for Windows (#10909) 2019-10-28 08:18:26 +05:00
Steve Lee d8d32d79c2 Implement Get-Error cmdlet as Experimental Feature (#10727) 2019-10-15 14:32:14 -07:00
Patrick Meinecke beb8b44420 Use type conversion in SSHConnection hashtables when value doesn't match expected type (#10720)
Before the change if the hashtable value does not match the expected type exactly, an exception is thrown stating that the value was null.
2019-10-15 22:16:49 +05:00
Steve Lee 1fa73e360f Add back Get-HotFix cmdlet (#10740) 2019-10-11 22:51:43 +05:00
Dongbo Wang ec105da3f1 Some code cleanup work (#10698)
* Move Utils.GetUserConfigurationDirectory to Platform.ConfigDirectory
* Unify the use of Platform.ConfigDirectory and Platform.CacheDirectory
2019-10-07 14:15:01 +05:00
Steve Lee 8cf9c01800 Add ConciseView for $ErrorView (#10641) 2019-10-04 16:52:57 -07:00