Skip to content

[Bug] None of the string overloads of EditorExtensionServiceProvider.GetService() work on .NET. #2331

Description

@mawosoft

None 1 of the string overloads of EditorExtensionServiceProvider.GetService() work on .NET.

Reason: You cannot use Assembly.GetType(string) with an assembly-qualified name.

Affected:

public object GetService(string psesServiceFullTypeName) => GetService(psesServiceFullTypeName, "Microsoft.PowerShell.EditorServices");
public object GetService(string fullTypeName, string assemblyName)
public object GetServiceByAssemblyQualifiedName(string asmQualifiedTypeName)

I can submit a PR if that's desirable.

Footnotes

  1. Workaround for services in the Microsoft.PowerShell.EditorServices assembly: Pass a regular FullName (without assembly name) to GetServiceByAssemblyQualifiedName(string asmQualifiedTypeName).

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions