jordimontana82 / fake-xrm-easy

The testing framework for Dynamics CRM and Dynamics 365 which runs on an In-Memory context and deals with mocks or fakes for you
https://dynamicsvalue.com/get-started/overview?source=git
Other
263 stars 182 forks source link

The specified service type is not supported when using Microsoft.Xrm.Sdk.PluginTelemetry. #583

Closed TaneliPeussa closed 2 years ago

TaneliPeussa commented 2 years ago

I've added using Microsoft.Xrm.Sdk.PluginTelemetry; and ILogger logger = (ILogger)serviceProvider.GetService(typeof(ILogger)); to my plug-in in order to log into Applicaton Insights.

If I update my plug-in unit test project to use the latest Microsoft.CrmSdk.CoreAssemblies (9.0.2.42) I'll get FakeXrmEasy.PullRequestException: Exception: The specified service type is not supported. I'm using FakeXrmEasy.9 (1.57.1).

Is there any workaround for this?

BetimBeja commented 2 years ago

There is already PR ##561 which should solve this problem. Be sure to follow @jordimontana82 on the Dataverse Summit here for the latest news and the state of the project 😄

TaneliPeussa commented 2 years ago

Thank you @BetimBeja.