/// <summary> /// Adds export-time warning that will be raised to the common warnings list ar the end /// </summary> /// <param name="warning">Warning instance</param> public void AddWarning(RtWarning warning) { if (!_suppressedWarningCodes.Contains(warning.Code)) { _warnings.Add(warning); } }
public static VisualStudioFriendlyErrorMessage Create(RtWarning warning) { return(new VisualStudioFriendlyErrorMessage(warning.Code, warning.Text, VisualStudioFriendlyMessageType.Warning, warning.Subcategory)); }