powerplatform-vscode
powerplatform-vscode copied to clipboard
PluginBase Error
When new Plugin in initialized using pac plugin init
command. The OrgSvcFactory & Notification Service is not available and object reference error is shown, this issue is in PluginBase class.
NotificationService = serviceProvider.Get<IServiceEndpointNotificationService>();
IOrganizationServiceFactory factory = serviceProvider.Get<IOrganizationServiceFactory>();
GetService method must be used here instead of Get Method.