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:
parent
8bb16c28aa
commit
2ff5e7301e
|
|
@ -29,9 +29,9 @@ namespace Microsoft.AspNetCore.Razor.Language.Components
|
|||
public static readonly RazorDiagnosticDescriptor CodeBlockInAttribute = new RazorDiagnosticDescriptor(
|
||||
$"{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. " +
|
||||
"Use 'attr=\"@(x => {... }\"'.",
|
||||
"Use 'attr=\"@(x => {{... }}\"'.",
|
||||
RazorDiagnosticSeverity.Error);
|
||||
|
||||
public static RazorDiagnostic Create_CodeBlockInAttribute(SourceSpan? source, string expression)
|
||||
|
|
|
|||
Loading…
Reference in New Issue