PowerShell v7.2.0-preview.1 Release Notes
Release Date: 2020-11-17 // over 4 years ago-
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
- 🔄 Change the default fallback encoding for
Previous changes from v7.1.0
-
7.1.0 - 2020-11-11
⚡️ Engine Updates and Fixes
⚡️ General Cmdlet Updates and Fixes
- ⚡️ Update
pwsh -?
output to match docs (#13748)
✅ Tests
- ⚡️
markdownlint
security updates (#13730)
🏗 Build and Packaging Improvements
⬆️ Bump .NET to version
5.0.100-rtm.20526.5
(#13920)- 🛠 Fixes to release pipeline for GA release (Internal 13410)
- 🔄 Change PkgES Lab to unblock build (Internal 13376)
- ➕ Add validation and dependencies for
Ubuntu 20.04
distribution to packaging script (#13993) - ➕ Add .NET install workaround for RTM (#13991)
- ⬆️ Bump
Microsoft.PowerShell.Native
version from7.1.0-rc.2
to7.1.0
(#13976) - ⬆️ Bump
PSReadLine
version to2.1.0
(#13975) - ⚡️ Update script to use .NET RTM feeds (#13927)
🚀 SHA256 Hashes of the release artifacts
- powershell_7.1.0-1.debian.10_amd64.deb
- D530B66C55FF48381B5F61DD8AB3E27B985017AAF2B4E9C8D37BDC7B51CE8E87
- powershell_7.1.0-1.debian.11_amd64.deb
- 2046D59FB228FF65A3E5808BFA9231BE0BBF75BC84995B847F1AA2F3689742F1
- powershell_7.1.0-1.debian.9_amd64.deb
- B065E529966D1B45F9CA3815FC3E79F289FB7040BED8449A565919144A85FC0A
- powershell_7.1.0-1.ubuntu.16.04_amd64.deb
- 25EDE87C86DBB44A3539E9FDFBBF7202359F723C687B9A6DD5951AEDA259C29B
- powershell_7.1.0-1.ubuntu.18.04_amd64.deb
- 0E91D6A3EFDE525266E4DC35613415D318408E4DF7C37E1E8576175AB9378FAA
- powershell_7.1.0-1.ubuntu.20.04_amd64.deb
- 09AC03BDCD7C74A36807BECA62EB4CCFCA690BE1DC3936ED08A7B8F14FE0CFF9
- powershell-7.1.0-1.centos.8.x86_64.rpm
- F3985B24719534F27A6C603416C7644771E17C75AFBFD8E6D5E98390045BF9D3
- powershell-7.1.0-1.rhel.7.x86_64.rpm
- ED1C8D2BDADEFA6FD54E942EA7170F38B5EB16D3D58914C7CDBACC410459709F
- 🐧 powershell-7.1.0-linux-alpine-x64.tar.gz
- 0B4405505EB97D4821449657A99A3DA4AA75F270F3A7745B451B461F2EADB39D
- 🐧 powershell-7.1.0-linux-arm32.tar.gz
- 2CD2489FA7D518FE671462429BB6D8BDC589FE0799FBBBB413266F5574930BDB
- 🐧 powershell-7.1.0-linux-arm64.tar.gz
- 5676B6178A8B69FDAAA571BEF1D5F26E0D168CCE409B5AD184DDA640FE0A1089
- 🐧 powershell-7.1.0-linux-x64.tar.gz
- F926A6CCE202F08F05D0BB662719F37CFA78CC073A9DE37B0A9B94F510F8D418
- 🐧 powershell-7.1.0-linux-x64-fxdependent.tar.gz
- FEE2D8224A35F9FC3F58431D26B5AB5EF56FDDBF6169FDEFEE362A2451044EE4
- powershell-7.1.0-osx-x64.pkg
- 9B7397266711B279B5413F42ABC899730539C8D78A29FD116E19A1BB78244D78
- powershell-7.1.0-osx-x64.tar.gz
- 10CE8B2837F30F127F866E9680F518B9AA6288222C24B62AD1CAD868FB2A66E9
- PowerShell-7.1.0-win-arm64.zip
- 5FEE7AE09E424652326A7185F4F20C7B0F1786A887A85DD9C150CF945F061943
- PowerShell-7.1.0-win-fxdependent.zip
- 17ECDA599BD1AA4667AF693E918534DC19518ECCE8F950D7E39B59A317C0B30D
- PowerShell-7.1.0-win-fxdependentWinDesktop.zip
- 56DD60E93AB0E0097123B16BF2CD83FB50EE1ABA21AB8F42291956C0C6524084
- PowerShell-7.1.0-win-x64.msi
- E9C362E4378EC001F46973F560FF25E07B2314F29CBE3E248559A4693F6B7ED4
- PowerShell-7.1.0-win-x64.zip
- C86F260F92B31D4E8E30B1EBBEB09E13364FC095ECF1538D9A8CEC18D21D5D32
- PowerShell-7.1.0-win-x86.msi
- 8ADA4906EE651B15E1F76895F5B2A735AA8D16F941E028EA28358F4215E883D1
- PowerShell-7.1.0-win-x86.zip
- 3D0F768573317A0F69DAB4F924B772EE947828D89CBF6BF5C7242B45A3800FBC
- ⚡️ Update