Description
Following the guide at https://learn.microsoft.com/en-us/azure/azure-functions/dotnet-isolated-process-guide?tabs=ihostapplicationbuilder%2Ccode%2Cwindows#configure-startup for Application Insights and upgrading package Microsoft.ApplicationInsights.WorkerService to v3.0 the line
builder.Services.ConfigureFunctionsApplicationInsights();
will fail:
System.TypeLoadException: 'Could not load type 'Microsoft.ApplicationInsights.Extensibility.ITelemetryInitializer' from assembly 'Microsoft.ApplicationInsights, Version=3.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.'
Steps to reproduce
- function app with app insights configured as per link in description
- update mentioned package to 3.0
- run app