public static void LogExceptionInstantiatingSkimmers(
IAnalysisContext context,
IEnumerable<Assembly> skimmerAssemblies,
Exception exception)
{
if (context == null)
{
throw new ArgumentNullException(nameof(context));
}
string plugins = string.Join(", ",
skimmerAssemblies.Select(sa => '"' + Path.GetFileName(sa.Location) + '"'));
// Could not instantiate skimmers from the following plugins: {0}
context.Logger.LogConfigurationNotification(
CreateNotification(
context.TargetUri,
ERR997_ExceptionInstantiatingSkimmers,
NotificationLevel.Error,
exception,
false,
plugins));
context.RuntimeErrors |= RuntimeConditions.ExceptionInstantiatingSkimmers;
}