7.2.0-preview.1 - 2020-11-17
Engine Updates and Fixes
- Change the default fallback encoding for
GetEncoding
inStart-Transcript
to beUTF8
without a BOM (#13732) (Thanks @Gimly!)
General Cmdlet Updates and Fixes
- Update
pwsh -?
output to match docs (#13748) - Fix
NullReferenceException
inTest-Json
(#12942) (Thanks @iSazonov!) - Make
Dispose
inTranscriptionOption
idempotent (#13839) (Thanks @krishnayalavarthi!) - Add additional Microsoft PowerShell modules to the tracked modules list (#12183)
- Relax further
SSL
verification checks forWSMan
on non-Windows hosts with verification available (#13786) (Thanks @jborean93!) - Add the
OutputTypeAttribute
toGet-ExperimentalFeature
(#13738) (Thanks @ThomasNieto!) - Fix blocking wait when starting file associated with a Windows application (#13750)
- Emit warning if
ConvertTo-Json
exceeds-Depth
value (#13692)
Code Cleanup
We thank the following contributors!
@xtqqczze, @mkswd, @ThomasNieto, @PatLeong, @paul-cheung, @georgettica
- Fix RCS1049: Simplify boolean comparison (#13994) (Thanks @xtqqczze!)
- Enable IDE0062: Make local function static (#14044) (Thanks @xtqqczze!)
- Enable CA2207: Initialize value type static fields inline (#14068) (Thanks @xtqqczze!)
- Enable CA1837: Use
ProcessId
andCurrentManagedThreadId
fromSystem.Environment
(#14063) (Thanks @xtqqczze and @PatLeong!) - Remove unnecessary using directives (#14014, #14017, #14021, #14050, #14065, #14066, #13863, #13860, #13861, #13814) (Thanks @xtqqczze and @ThomasNieto!)
- Remove unnecessary usage of LINQ
Count
method (#13545) (Thanks @xtqqczze!) - Fix SA1518: The code must not contain extra blank lines at the end of the file (#13574) (Thanks @xtqqczze!)
- Enable CA1829: Use the
Length
orCount
property instead ofCount()
(#13925) (Thanks @xtqqczze!) - Enable CA1827: Do not use
Count()
orLongCount()
whenAny()
can be used (#13923) (Thanks @xtqqczze!) - Enable or fix nullable usage in a few files (#13793, #13805, #13808, #14018, #13804) (Thanks @mkswd and @georgettica!)
- Enable IDE0040: Add accessibility modifiers (#13962, #13874) (Thanks @xtqqczze!)
- Make applicable private Guid fields readonly (#14000) (Thanks @xtqqczze!)
- Fix CA1003: Use generic event handler instances (#13937) (Thanks @xtqqczze!)
- Simplify delegate creation (#13578) (Thanks @xtqqczze!)
- Fix RCS1033: Remove redundant boolean literal (#13454) (Thanks @xtqqczze!)
- Fix RCS1221: Use pattern matching instead of combination of
as
operator and null check (#13333) (Thanks @xtqqczze!) - Use
is not
syntax (#13338) (Thanks @xtqqczze!) - Replace magic number with constant in PDH (#13536) (Thanks @xtqqczze!)
- Fix accessor order (#13538) (Thanks @xtqqczze!)
- Enable IDE0054: Use compound assignment (#13546) (Thanks @xtqqczze!)
- Fix RCS1098: Constant values should be on right side of comparisons (#13833) (Thanks @xtqqczze!)
- Enable CA1068:
CancellationToken
parameters must come last (#13867) (Thanks @xtqqczze!) - Enable CA10XX rules with suggestion severity (#13870, #13928, #13924) (Thanks @xtqqczze!)
- Enable IDE0064: Make Struct fields writable (#13945) (Thanks @xtqqczze!)
- Run
dotnet-format
to improve formatting of source code (#13503) (Thanks @xtqqczze!) - Enable CA1825: Avoid zero-length array allocations (#13961) (Thanks @xtqqczze!)
- Add IDE analyzer rule IDs to comments (#13960) (Thanks @xtqqczze!)
- Enable CA1830: Prefer strongly-typed
Append
andInsert
method overloads onStringBuilder
(#13926) (Thanks @xtqqczze!) - Enforce code style in build (#13957) (Thanks @xtqqczze!)
- Enable CA1836: Prefer
IsEmpty
overCount
when available (#13877) (Thanks @xtqqczze!) - Enable CA1834: Consider using
StringBuilder.Append(char)
when applicable (#13878) (Thanks @xtqqczze!) - Fix IDE0044: Make field readonly (#13884, #13885, #13888, #13892, #13889, #13886, #13890, #13891, #13887, #13893, #13969, #13967, #13968, #13970, #13971, #13966, #14012) (Thanks @xtqqczze!)
- Enable IDE0048: Add required parentheses (#13896) (Thanks @xtqqczze!)
- Enable IDE1005: Invoke delegate with conditional access (#13911) (Thanks @xtqqczze!)
- Enable IDE0036: Enable the check on the order of modifiers (#13958, #13881) (Thanks @xtqqczze!)
- Use span-based
String.Concat
instead ofString.Substring
(#13500) (Thanks @xtqqczze!) - Enable CA1050: Declare types in namespace (#13872) (Thanks @xtqqczze!)
- Fix minor keyword typo in C# code comment (#13811) (Thanks @paul-cheung!)
Tools
- Enable
CodeQL
Security scanning (#13894) - Add global
AnalyzerConfig
with default configuration (#13835) (Thanks @xtqqczze!)
Build and Packaging Improvements
We thank the following contributors!
- Bump
Microsoft.NET.Test.Sdk
to16.8.0
(#14020) - Bump
Microsoft.CodeAnalysis.CSharp
to3.8.0
(#14075) - Remove workarounds for .NET 5 RTM builds (#14038)
- Migrate 3rd party signing to ESRP (#14010)
- Fixes to release pipeline for GA release (#14034)
- Don't do a shallow checkout (#13992)
- Add validation and dependencies for Ubuntu 20.04 distribution to packaging script (#13993)
- Add .NET install workaround for RTM (#13991)
- Move to ESRP signing for Windows files (#13988)
- Update
PSReadLine
version to2.1.0
(#13975) - Bump .NET to version
5.0.100-rtm.20526.5
(#13920) - Update script to use .NET RTM feeds (#13927)
- Add checkout step to release build templates (#13840)
- Turn on
/features:strict
for all projects (#13383) (Thanks @xtqqczze!) - Bump
NJsonSchema
to10.2.2
(#13722, #13751) - Add flag to make Linux script publish to production repo (#13714)
- Bump
Markdig.Signed
to0.22.0
(#13741) - Use new release script for Linux packages (#13705)
Documentation and Help Content
- Fix links to LTS versions for Windows (#14070)
- Fix
crontab
formatting in example doc (#13712) (Thanks @dgoldman-msft!)
SHA256 Hashes of the release artifacts
- powershell-7.2.0-preview.1-linux-alpine-x64.tar.gz
- A8BE7A5716C74178E00DC38559B10246BB0A5EA188721B5D3A3301619B7F1D38
- powershell-7.2.0-preview.1-linux-arm32.tar.gz
- B476BF8941BD10BDB7187CB3F3FB649C30B05F3AA6979A09D8154229FE00674D
- powershell-7.2.0-preview.1-linux-arm64.tar.gz
- D7BCD990A6FF94A343C125F1B43EBD1C3D6499F6D0BC13EA2294151D3FD50C3D
- powershell-7.2.0-preview.1-linux-x64.tar.gz
- 0B1ED188A093DF1DE38C4C90E48520959C45BA34E53822118ADCE83637BB3AB9
- powershell-7.2.0-preview.1-linux-x64-fxdependent.tar.gz
- 637A4433DD8FB57309487CC0E9355C38DBAC3A33F34CEA65C321CD2FF6CDB668
- powershell-7.2.0-preview.1-osx-x64.pkg
- 40B3F05C6866A5654D16ED17F719CA4F6EF3E9743C916D2E7468FE44CDAA85D6
- powershell-7.2.0-preview.1-osx-x64.tar.gz
- 4E6D1CEA00AE1FD6D7FCE8D8021AFBDDDD85D8BCE693B572D400DA5F97E1F225
- PowerShell-7.2.0-preview.1-win-arm64.zip
- 3042DF48FAE28D5CA0CCE9B00734FD8A109458B5236B217A32BE32423A12C8A5
- PowerShell-7.2.0-preview.1-win-fxdependent.zip
- C093454E077B772C04FF0887590F4A736FD43ED7747884B6972F89A0099F3FF5
- PowerShell-7.2.0-preview.1-win-fxdependentWinDesktop.zip
- 4ACFF266B76B9B1D96AADB703181B78BF4D30AFFE0051D1BB3D5B2699969E9FB
- PowerShell-7.2.0-preview.1-win-x64.msi
- 51487F548A98784FD56BE204BC7CE13C545EFBF71883575D51526D129408FAF1
- PowerShell-7.2.0-preview.1-win-x64.zip
- 6D71E2C665DF7484E12077EF1287F921C33E718FFDA6FCCD8023FA739084EAAC
- PowerShell-7.2.0-preview.1-win-x86.msi
- 80C1B42937378AAF7DC2F116259A323F67739CDBC139B9BA52849B7BB0488892
- PowerShell-7.2.0-preview.1-win-x86.zip
- E018816A66225BE8B2CECFB8594072CB2A58812DAC2D537C317B46ABD50FF7A0
- powershell-preview_7.2.0-preview.1-1.debian.10_amd64.deb
- D1F6332333124930CFE0131CE20BBFBE1CF49DA668FDD47575FBF2C20C91320A
- powershell-preview_7.2.0-preview.1-1.debian.11_amd64.deb
- 67F67AB617F216F3805904C41E27504CDB97C966EADF29F17760AF2FF98C4541
- powershell-preview_7.2.0-preview.1-1.debian.9_amd64.deb
- 299ED79F1AEE20C7E6F0B1578505AAEE0FD861BF7ACA2611E1CAFB3F3982A0D0
- powershell-preview_7.2.0-preview.1-1.ubuntu.16.04_amd64.deb
- 7A5565C6120941549772B9C296E2E09CEA54FAF5828FC62EA302A0EA11C0C827
- powershell-preview_7.2.0-preview.1-1.ubuntu.18.04_amd64.deb
- 400923DE74312B5774880123F4D86CA7EE4CCF49BADC7220059FAC0E98A1B5B9
- powershell-preview_7.2.0-preview.1-1.ubuntu.20.04_amd64.deb
- F3D8EE4DF9A80856A1DD968A1EA80E341C09A26EEC7907A5CFF825F234271280
- powershell-preview-7.2.0_preview.1-1.centos.8.x86_64.rpm
- 62FB16D843266FC43E46AE66954744F0915B51E1CBA0C01BA06CA7450F4ED723
- powershell-preview-7.2.0_preview.1-1.rhel.7.x86_64.rpm