Fixes: dotnet/aspnetcore-tooling#5640 FormatException from diagnostic

This was just a badly written diagnostic format string
\n\nCommit migrated from ef7d82a7ff
This commit is contained in:
Ryan Nowak 2019-04-01 17:20:18 -07:00 committed by Ryan Nowak
parent 8bb16c28aa
commit 2ff5e7301e
1 changed files with 2 additions and 2 deletions

View File

@ -29,9 +29,9 @@ namespace Microsoft.AspNetCore.Razor.Language.Components
public static readonly RazorDiagnosticDescriptor CodeBlockInAttribute = new RazorDiagnosticDescriptor( public static readonly RazorDiagnosticDescriptor CodeBlockInAttribute = new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}9979", $"{DiagnosticPrefix}9979",
() => () =>
"Code blocks delimited by '@{...}' like '@{{ {0} }}' for attributes are no longer supported " + "Code blocks delimited by '@{{...}}' like '@{{ {0} }}' for attributes are no longer supported " +
"These features have been changed to use attribute syntax. " + "These features have been changed to use attribute syntax. " +
"Use 'attr=\"@(x => {... }\"'.", "Use 'attr=\"@(x => {{... }}\"'.",
RazorDiagnosticSeverity.Error); RazorDiagnosticSeverity.Error);
public static RazorDiagnostic Create_CodeBlockInAttribute(SourceSpan? source, string expression) public static RazorDiagnostic Create_CodeBlockInAttribute(SourceSpan? source, string expression)