Update link in compiler error message
This commit is contained in:
parent
4cbf6cc64b
commit
edf84cb80a
|
|
@ -167,7 +167,7 @@ namespace Microsoft.AspNetCore.Blazor.Razor
|
|||
|
||||
public static readonly RazorDiagnosticDescriptor DisallowedScriptTag = new RazorDiagnosticDescriptor(
|
||||
"BL9992",
|
||||
() => "Script tags should not be placed inside components because they cannot be updated dynamically. To fix this, move the script tag to the 'index.html' file or another static location. For more information see http://some/link",
|
||||
() => "Script tags should not be placed inside components because they cannot be updated dynamically. To fix this, move the script tag to the 'index.html' file or another static location. For more information see https://go.microsoft.com/fwlink/?linkid=872131",
|
||||
RazorDiagnosticSeverity.Error);
|
||||
|
||||
public static RazorDiagnostic Create_DisallowedScriptTag(SourceSpan? source)
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ Goodbye");
|
|||
item =>
|
||||
{
|
||||
Assert.Equal("BL9992", item.Id);
|
||||
Assert.Equal("Script tags should not be placed inside components because they cannot be updated dynamically. To fix this, move the script tag to the 'index.html' file or another static location. For more information see http://some/link", item.GetMessage());
|
||||
Assert.Equal("Script tags should not be placed inside components because they cannot be updated dynamically. To fix this, move the script tag to the 'index.html' file or another static location. For more information see https://go.microsoft.com/fwlink/?linkid=872131", item.GetMessage());
|
||||
Assert.Equal(2, item.Span.LineIndex);
|
||||
Assert.Equal(4, item.Span.CharacterIndex);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue