Commit Graph
2019 Commits
Author SHA1 Message Date
Pat Leong 72608fb829 Use Environment.CurrentManagedThreadId (#13803) 2020-10-30 12:42:17 +05:00
xtqqczze 2c1546cd47 Enable CA1836: Prefer IsEmpty over Count when available (#13877)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1836
2020-10-30 12:15:29 +05:00
xtqqczze af8558b065 Enable CA1834: Consider using 'StringBuilder.Append(char)' when applicable (#13878)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1834
2020-10-30 12:07:18 +05:00
xtqqczze 20401c9583 Enable IDE1005: InvokeDelegateWithConditionalAccess (#13911)
* Enable IDE1005: InvokeDelegateWithConditionalAccess

https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide1005
2020-10-28 22:35:51 +05:00
xtqqczze 69ded7777a Use span-based string.Concat inatead of string.Substring (#13500)
Before:

```csharp
str1 + str2.Substring(...) + str3
```

After:
```csharp
string.Concat(str1, str2.AsSpan(...), str3)
```
2020-10-28 13:01:05 +05:00
Thomas Nieto 9b39f05557 Remove unnecessary using in namespaces folder (#13860) 2020-10-25 09:08:05 -07:00
Thomas Nieto 9bbba286c0 Remove unnecessary using in security folder (#13861) 2020-10-25 19:39:10 +05:00
krishnayalavarthiandKrishna Yalavarthi c8feddb214 Make dispose in TranscriptionOption idempotent (#13839)
Co-authored-by: Krishna Yalavarthi <kryalava@microsoft.com>
2020-10-23 11:36:53 -07:00
Thomas Nieto 34251ed12b Remove unnessary using (#13814) 2020-10-21 17:48:32 +05:00
Sydney Smith 1a3721a574 Add PowerShell Modules to the tracked modules list (#12183) 2020-10-19 13:21:43 -07:00
Aditya Patwardhan 67bdf7292d Bump Microsoft.PowerShell.Native to 7.1.0-rc.2 (#13794) 2020-10-16 16:25:47 -07:00
Jordan Borean 5fe17baa3b Relax further SSL verification checks for WSMan on non-Windows hosts with verification available (#13786) 2020-10-16 09:57:42 -07:00
Aditya Patwardhan 49b7faa817 Move PowerShell build to .NET 5 RC.2 (#13780) 2020-10-14 11:04:39 -07:00
Robert Holt 56ad41b143 Add missing PSToken entries (#13779) 2020-10-14 11:02:54 -07:00
Dongbo Wang 2728574df7 Rename 'Get-Subsystem' to 'Get-PSSubsystem' and fix two minor issues (#13765) 2020-10-14 09:42:37 -07:00
Xavier Hahn cf251a97d2 Change default fallback encoding for GetEncoding in Start-Transcript (#13732) 2020-10-09 10:43:31 -07:00
Thomas Nieto 5aca8637ae Add Get-ExperimentalFeature OutputType attribute (#13738) 2020-10-08 13:32:19 -07:00
Steve Lee 16cc9aaaf8 Fix blocking wait when starting file associated with a Windows application (#13750)
* Fix blocking wait when starting file associated with a Windows application in elevated process

* refactor check if app is WindowsApp
2020-10-07 12:58:24 +05:00
Steve Lee fc8ca61b3d Revert "Change PSNativePSPathResolution to not be Experimental" (#13734)
* Revert "Change `PSNativePSPathResolution` to not be Experimental (#13522)"

This reverts commit 74c743d279.
2020-10-03 21:20:24 +05:00
Steve Lee 36ba1092a8 Fix case where exception message contains "`n" on Windows (#13684) 2020-09-24 23:43:33 +05:00
dependabot-preview[bot] 13d4dd86b5 Bump Microsoft.ApplicationInsights from 2.14.0 to 2.15.0 (#13639) 2020-09-24 10:21:22 -07:00
Dongbo Wang 10237bdeb3 Update PowerShell to build against dotnet 5.0-RC.1 (#13643) 2020-09-23 14:04:01 -07:00
David Reis 3effa20410 Recognize CONOUT$ and CONIN$ as reserved device names (#13508) 2020-09-14 11:10:12 -07:00
Steve Lee d25d964d57 Fix ConciseView for interactive advanced function writing error (#13623) 2020-09-14 11:07:37 -07:00
Dongbo Wang 47f3beafcd Merge branch 'master' into preview.7 2020-09-08 16:27:29 -07:00
Dongbo Wang ad88bd60fc Make a couple of fixes to ComInterop code as suggested by .NET team (#13533) 2020-09-08 09:19:13 -07:00
xtqqczze 88e706f3d7 Autofix RCS1068: Simplify logical negation (#13555) 2020-09-04 08:40:05 +05:00
Robert Holt 368c8ff3c3 Merged PR 12555: Update .NET version to 5.0.0-preview.8.20407.11
Update .NET version to 5.0.0-preview.8.20407.11
2020-09-03 18:58:21 +00:00
3beeea49af Revert "Add the parameter -Paged to Get-Help to support paging (#13374)" (#13519)
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
Co-authored-by: Dongbo Wang <dongbow@microsoft.com>
2020-09-02 15:00:19 -07:00
xtqqczze 152456d7a0 Add single blank line after copyright header (#13486) 2020-09-02 08:15:16 +05:00
xtqqczze 859890374a Use read-only auto-implemented properties (#13507)
* Autofix RCS1170: Use read-only auto-implemented property
2020-09-02 08:11:16 +05:00
xtqqczze 4e21101ba5 Use boolean instead of bitwise operators on bools (#13506)
* Autofix RCS1233: Use short-circuiting operator
https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1233.md
2020-09-02 08:07:49 +05:00
Tamás Vajk 0f02fd7f1d Fix erroneous assert (#13495) 2020-09-01 09:47:26 +05:00
xtqqczze 8f37cced70 Cleanup: remove duplicate words in comments (#13539) 2020-08-31 11:39:00 -07:00
Robert Holt 6a37eb9313 Update to .NET 5 preview 8 (#13530) 2020-08-31 10:38:05 -07:00
xtqqczze 83079f6397 Reformat StringUtil (#13509) 2020-08-29 11:21:28 +05:00
Ilya 4e2b6e9540 Process reparse points for Microsoft Store applications (#13481) 2020-08-27 11:51:19 -07:00
Aditya Patwardhan cb8165eeef Move PSNullConditionalOperators feature out of experimental (#13529) 2020-08-27 10:11:01 -07:00
Steve Lee 74c743d279 Change PSNativePSPathResolution to not be Experimental (#13522) 2020-08-27 12:08:52 +05:00
The Dumb 126d94218a Use field if property does not exist for ObRoot (#13375) 2020-08-25 14:35:43 -07:00
xtqqczze 16f0b74187 Cleanup: Remove redundant empty lines (#13404) 2020-08-25 11:29:26 -07:00
xtqqczze 3594ac60c7 Add StringUtil.Format overload to avoid unnecessary allocations (#13408)
* Rename parameters to correspond to string.Format

* Add addtional overload to avoid allocations at call sites
2020-08-24 09:10:54 +05:00
Robert Holt 213e5b7857 Suppress UTF-7 obsolete warnings (#13484) 2020-08-21 10:37:42 -07:00
Dongbo Wang 44bb5861cb Avoid multiple enumerations of an IEnumerable<Expression> instance in Compiler.cs (#13491) 2020-08-21 10:28:16 -07:00
Dongbo Wang fc4c9cbfd7 Initial work of the subsystem plugin model (for minimal powershell) (#13186) 2020-08-20 17:41:44 -07:00
Dongbo Wang 98dbaefcd6 Optimize 'GetSystemLockdownPolicy' for non-lockdown scenarios (#13438) 2020-08-19 10:48:14 -07:00
Steve Lee d67649c300 Fix $? to not be $false when native command writes to stderr (#13395) 2020-08-19 09:31:38 -07:00
James Truher [MSFT] f8b9e8e9db Create warnings when UTF7 is specified as an encoding (#13430) 2020-08-17 22:19:22 -07:00
Aditya Patwardhan 485ec44005 Add the parameter -Paged to Get-Help to support paging (#13374) 2020-08-11 15:51:00 -07:00
Thomas Nieto 46efd38ef5 Fix Get-Help not properly displaying if parameter supports wildcards (#13353) 2020-08-11 10:20:45 -07:00