Skip to content

Unable to fine type [sring] #2

Description

@rcmosher

Testing this out for the first time and was met with this series of errors when trying to register.

> Register-ProfileAliasInProfile
InvalidOperation: Unable to find type [sring].
InvalidOperation: You cannot call a method on a null-valued expression.
InvalidOperation: You cannot call a method on a null-valued expression.
Set-Content: Could not find a part of the path 'C:\Users\me\OneDrive - AName\Documents\PowerShell\Microsoft.PowerShell_profile.ps1'.

The "sring" portion appears to be a typo here:

$profileContent = (Test-Path $Path) ? (Get-Content -Path $Path -Raw) ?? [string]::Empty : [sring]::Empty

No idea if the following lines are stemming from that or their own issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions