public static void LogExceptionLoadingTarget(IAnalysisContext context)
{
if (context == null)
{
throw new ArgumentNullException(nameof(context));
}
// Could not load analysis target '{0}'.
context.Logger.LogConfigurationNotification(
CreateNotification(
context.TargetUri,
ERR997_ExceptionLoadingAnalysisTarget,
NotificationLevel.Error,
context.TargetLoadException,
false,
context.TargetUri.GetFileName()));
context.RuntimeErrors |= RuntimeConditions.ExceptionLoadingTargetFile;
}