Skip to content

Commit af335c3

Browse files
committed
Add global:: to default usings
1 parent 0d1faff commit af335c3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Compiler/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentImportProjectFeature.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ internal class ComponentImportProjectFeature : IImportProjectFeature
1616
// Using explicit newlines here to avoid fooling our baseline tests
1717
private const string DefaultUsingImportContent =
1818
"\r\n" +
19-
"@using System\r\n" +
20-
"@using System.Collections.Generic\r\n" +
21-
"@using System.Linq\r\n" +
22-
"@using System.Threading.Tasks\r\n" +
23-
"@using " + ComponentsApi.RenderFragment.Namespace + "\r\n"; // Microsoft.AspNetCore.Components
19+
"@using global::System\r\n" +
20+
"@using global::System.Collections.Generic\r\n" +
21+
"@using global::System.Linq\r\n" +
22+
"@using global::System.Threading.Tasks\r\n" +
23+
"@using global::" + ComponentsApi.RenderFragment.Namespace + "\r\n"; // Microsoft.AspNetCore.Components
2424

2525
public RazorProjectEngine ProjectEngine { get; set; }
2626

0 commit comments

Comments
 (0)