Skip to content

Commit

Permalink
Fix passing message args to BuildException in XamlCTask
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrozsival authored and PureWeen committed Oct 18, 2024
1 parent 155d428 commit 79db39b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controls/src/Build.Tasks/XamlCTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public static void LogWarningOrError(this TaskLoggingHelper loggingHelper, Build
{
loggingHelper.LogError("XamlC", $"{code.CodePrefix}{code.CodeCode:0000}", code.HelpLink, xamlFilePath, lineNumber, linePosition, endLineNumber, endLinePosition, ErrorMessages.ResourceManager.GetString(code.ErrorMessageKey), messageArgs);
LoggedErrors ??= new();
LoggedErrors.Add(new BuildException(code, new XmlLineInfo(lineNumber, linePosition), innerException: null));
LoggedErrors.Add(new BuildException(code, new XmlLineInfo(lineNumber, linePosition), innerException: null, messageArgs));
}
else
{
Expand Down

0 comments on commit 79db39b

Please sign in to comment.