Commit Graph
4473 Commits
Author SHA1 Message Date
Ilya ea428a6e1f Remove NativeCultureResolver as dead code (#18582) 2022-11-23 09:10:32 +05:00
Ilya 05e50dfbd7 Replace DllImport with LibraryImport in SMA 6 (#18581) 2022-11-22 23:27:45 +05:00
Ilya 8bc9fdb2a1 Replace DllImport with LibraryImport in SMA 2 (#18543) 2022-11-22 22:22:14 +05:00
Ilya 0d320ab89a Use standard SBCS detection (#18593) 2022-11-22 09:13:09 -08:00
Ilya 041f4332e5 Remove unused pinvokes in RemoteSessionNamedPipe (#18583) 2022-11-22 09:12:41 -08:00
CarloToso 83d3b0e12b Webcmdlets add 308 to redirect codes and small cleanup (#18536) 2022-11-22 22:01:26 +05:00
Ilya 65176b4df1 Remove SafeRegistryHandle (#18597) 2022-11-22 08:33:51 +05:00
Ilya 6aa74c5c3c Remove ArchitectureSensitiveAttribute from the code base (#18598) 2022-11-18 14:15:05 -08:00
Dongbo Wang c0da3c42f2 Build COM adapter only on Windows (#18590) 2022-11-18 13:00:07 +05:00
Sean Wheeler 6be34e6a3d Change unsupported XML documentation tag (#18608) 2022-11-18 11:43:26 +05: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 4f19c05547 Ensure HelpInfo.Category is consistently a string (#18254) 2022-11-15 17:57:03 -08:00
Steve Lee 65b353d9cf The command prefix should also be in the error color for NormalView (#18555) 2022-11-15 17:54:23 -08:00
Dongbo Wang b3a9ae371c Remove gcloud from the legacy list because it's resolved to a .ps1 script (#18575) 2022-11-15 17:53:01 -08:00
Steve Lee 04de3045e4 Add gcloud and sqlcmd to list to use legacy argument passing (#18559) 2022-11-15 14:01:51 -08:00
Rob Green 9c55e1e9ab Include timer instantiation for legacy telemetry in conditional compiler statements in Get-Help (#18475) 2022-11-15 09:40:07 +05:00
Christian UllrichandChristian Ullrich 8b7023d1a3 Fix native access violation (#18545) (#18547)
The error occurs only when running x86 pwsh on x64 Windows 11 22H2, the
first Windows version that has WldpCanExecuteFile().

Co-authored-by: Christian Ullrich <christian.ullrich@traditionsa.lu>
2022-11-14 14:09:02 -08:00
Steve Lee 0ea9c324d0 Convert DllImport to LibraryImport for recyclebin, clipboard, and computerinfo cmdlets (#18526) 2022-11-14 12:46:59 -05:00
Steve Lee c740a07e10 Change public API mention of monad to PowerShell (#18491)
* Change public API mention of `monad` to PowerShell

* looks like I forgot to save changes in some files
2022-11-14 12:45:23 -05:00
Ilya b84652745c Replace DllImport with LibraryImport in SMA 1 (#18520) 2022-11-12 16:48:27 +05:00
Steve Lee 9f459c05f6 Replace DllImport with LibraryImport in engine (#18496) 2022-11-10 08:24:11 +05:00
dependabot[bot] bd89dce2f1 Bump System.Data.SqlClient from 4.8.4 to 4.8.5 in /src/Microsoft.PowerShell.SDK (#18515)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-09 23:30:15 +00:00
Travis Plunk 665bf21fcb Bump to use internal .NET 7 GA build (#18508) 2022-11-09 22:51:24 +00:00
Patrick Meinecke 74aa257839 Skip cloud files marked as "not on disk" during command discovery (#18152) 2022-11-08 14:37:29 -08:00
Steve Lee 837482376e Replace msh in public API comment based documentation with PowerShell equivalent (#18483) 2022-11-08 08:27:52 +05:00
MartinGC94 0a6de4672a Fix issue when completing the first command in a script with an empty array expression (#18355) 2022-11-07 17:14:49 -08:00
MartinGC94 b5ffd043c5 Improve type inference of hashtable keys (#17907) 2022-11-07 17:10:03 -08:00
Steve Lee 0ddf89e5a8 Fix Switch-Process to copy the current env to the new process (#18452) 2022-11-07 11:03:37 -08:00
xtqqczze 1688b0fc35 Replace UTF8Encoding(false) with Encoding.Default (#18356) 2022-11-07 10:07:36 -08:00
Steve Lee a2ee05400f Fix Switch-Process to set termios appropriate for child process (#18467) 2022-11-04 15:12:09 -07:00
Dongbo Wang db21524d23 Add missing XML doc elements for methods in RunspaceFactory (#18450) 2022-11-03 11:44:46 -07:00
Ikko Ashimine 455d29471c Fix typo in InitialSessionState.cs (#18435)
controling -> controlling
2022-11-03 11:01:13 +05:00
Steve Lee 52a62e9ef2 Fix Switch-Process error to include the command that is not found (#18443) 2022-11-03 07:54:11 +05:00
Steve Lee 3e1a4d5679 Remove remaining unused strings from resx files (#18448) 2022-11-03 07:52:46 +05:00
Dongbo Wang f2e0640dd7 Update Out-Printer to remove all decorating ANSI escape sequences from PowerShell formatting (#18425) 2022-11-02 15:42:45 -07:00
CarloToso 489e316151 Webcmdlets set default charset encoding to UTF8 (#18219) 2022-11-02 22:34:09 +05:00
Berkan Diler c16521ac87 Use new LINQ Order() methods instead of OrderBy(static x => x) (#18395)
Less code, a bit faster, less allocations
2022-11-01 13:31:58 +05:00
Berkan Diler 8619d8432f Make use of StringSplitOptions.TrimEntries when possible (#18412) 2022-10-31 22:20:22 +05:00
Berkan Diler 9016adf1c2 Replace some string.Join(string) calls with string.Join(char) (#18411) 2022-10-31 09:56:15 -07:00
dependabot[bot] 8b957f8673 Bump Microsoft.PowerShell.Native from 7.3.0-rc.1 to 7.3.0 (#18405) 2022-10-28 09:19:32 -07:00
Steve Lee ae3f5f0f64 Remove unused strings from FileSystem and Registry providers (#18403) 2022-10-28 08:18:36 +05:00
Ilya 8965af3d52 Remove some static constants from Utils.Separators (#18154) 2022-10-27 15:25:41 -07:00
xtqqczze dd884459c1 Use generic GetValues<T>, GetNames<T> enum methods (#18391) 2022-10-27 09:42:33 -07:00
Steve Lee 6c4f27eec1 Remove unused resource strings from SessionStateStrings (#18394) 2022-10-27 09:36:11 -07:00
Steve Lee 0ede377311 Remove unused resource strings in System.Management.Automation (#18388) 2022-10-26 11:04:44 -07:00
Dongbo Wang 8b82fa3597 Avoid using regex when unnecessary in ScriptWriter (#18348) 2022-10-26 09:50:26 -07:00
Nicklas Bjälemark a06d908587 Fix incorrect cmdlet name in the script used by Restart-Computer (#18374) 2022-10-26 09:27:36 -07:00
xtqqczze e2d13c8efa Use Enum.HasFlags part 1 (#18386) 2022-10-26 08:46:00 -07:00
Steve Lee 70a0a27f55 Remove unused strings from parser (#18383) 2022-10-26 08:01:33 +05:00
Steve Lee f3f56d4d1d Remove unused strings from Utility module (#18370) 2022-10-24 22:00:01 -07:00