Skip to content

Commit 17ead0b

Browse files
committed
Align fast csproj parser with SDK update which removed global:: from generated global usings file
1 parent 7378b6f commit 17ead0b

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

tools/ExampleTester.Tests/FastCsprojCompilationParserTests.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,13 @@ public static void ParsesImplicitUsings([Values("true", "enable", "false", "disa
209209
source.FilePath.ShouldBe("Test.GlobalUsings.g.cs");
210210
source.GetText().ToString().ShouldBe("""
211211
// <auto-generated/>
212-
global using global::System;
213-
global using global::System.Collections.Generic;
214-
global using global::System.IO;
215-
global using global::System.Linq;
216-
global using global::System.Net.Http;
217-
global using global::System.Threading;
218-
global using global::System.Threading.Tasks;
212+
global using System;
213+
global using System.Collections.Generic;
214+
global using System.IO;
215+
global using System.Linq;
216+
global using System.Net.Http;
217+
global using System.Threading;
218+
global using System.Threading.Tasks;
219219
220220
""");
221221
}

tools/ExampleTester/FastCsprojCompilationParser.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,13 @@ public static CsprojParseResult ParseCsproj(XDocument csprojDocument, string fil
134134
{
135135
generatedSources.Add(SyntaxFactory.ParseSyntaxTree("""
136136
// <auto-generated/>
137-
global using global::System;
138-
global using global::System.Collections.Generic;
139-
global using global::System.IO;
140-
global using global::System.Linq;
141-
global using global::System.Net.Http;
142-
global using global::System.Threading;
143-
global using global::System.Threading.Tasks;
137+
global using System;
138+
global using System.Collections.Generic;
139+
global using System.IO;
140+
global using System.Linq;
141+
global using System.Net.Http;
142+
global using System.Threading;
143+
global using System.Threading.Tasks;
144144
145145
""",
146146
parseOptions,

0 commit comments

Comments
 (0)