-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Hi!
Great initiative, I can see this get added into our pipeline!
It needs some more tests though..
With the .NET changes that come with PowerShell 7 some overloads where changed/added as well, which may impact PowerShell scripts that utilize them.
For example:
This will split in PowerShell 5:
PS C:\> [string]$PSVersionTable['PSVersion']
5.1.20348.2849
PS C:\> 'SomeExampleExampleExample'.Split('ex')
Som
E
ampl
E
ampl
E
ampl
But not in PowerShell 7 cause a different overload is hit:
PS C:\> [string]$PSVersionTable['PSVersion']
7.4.5
PS C:\> 'SomeExampleExampleExample'.Split('ex')
SomeExampleExampleExample
PS C:\>
While I was working on migrating our code base I've tried to search for a big list of these changes but wasn't quite successful. Split is one I know changed, but there may be others.
Best regards,
Sidney
Metadata
Metadata
Assignees
Labels
No labels