PowerShell/CHANGELOG/preview.md
Dongbo Wang 8549c4d6a2 Merged PR 13516: Update the ChangeLog for the 7.2.0-preview.1 release
Update the ChangeLog for the 7.2.0-preview.1 release
2020-11-17 22:28:05 +00:00

6.7 KiB

Current preview release

7.2.0-preview.1 - 2020-11-17

Engine Updates and Fixes

  • Change the default fallback encoding for GetEncoding in Start-Transcript to be UTF8 without a BOM (#13732) (Thanks @Gimly!)

General Cmdlet Updates and Fixes

  • Update pwsh -? output to match docs (#13748)
  • Fix NullReferenceException in Test-Json (#12942) (Thanks @iSazonov!)
  • Make Dispose in TranscriptionOption idempotent (#13839) (Thanks @krishnayalavarthi!)
  • Add additional Microsoft PowerShell modules to the tracked modules list (#12183)
  • Relax further SSL verification checks for WSMan on non-Windows hosts with verification available (#13786) (Thanks @jborean93!)
  • Add the OutputTypeAttribute to Get-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 and CurrentManagedThreadId from System.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 or Count property instead of Count() (#13925) (Thanks @xtqqczze!)
  • Enable CA1827: Do not use Count() or LongCount() when Any() 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 and Insert method overloads on StringBuilder (#13926) (Thanks @xtqqczze!)
  • Enforce code style in build (#13957) (Thanks @xtqqczze!)
  • Enable CA1836: Prefer IsEmpty over Count 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 of String.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!

@mkswd, @xtqqczze

  • Bump Microsoft.NET.Test.Sdk to 16.8.0 (#14020)
  • Bump Microsoft.CodeAnalysis.CSharp to 3.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 to 2.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 to 10.2.2 (#13722, #13751)
  • Add flag to make Linux script publish to production repo (#13714)
  • Bump Markdig.Signed to 0.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!)