tldag-dotnet

Get-PSRepository

September 2021, Roger H. Jörg

The source of this command is again a script.

Inner Workings

After setting some parameters, it forwards the job to Get-PackageSource.

The parameters passed to Get-PackageSource are read from a private script. The values are:

$script:PSModuleProviderName = 'PowerShellGet'
$script:PackageManagementMessageResolverScriptBlock = {
    param($i, $Message)
    return (PackageManagementMessageResolver -MsgId $i, -Message $Message)
}

These values are passed as parameters Provider and MessageResolver to Get-PackageSource

A quick look at the documentation of the current Get-PackageSource shows, that the parameter names do not match.

Inspection of the manifest shows that PackageManagement version 1.4.4 is used. Most probably an out-dated version.

Conclusions

Further investigation of PackageManagement/1.4.4 is required. Maybe the PowerShell package System.Management.Automation can help us out.

References