Skip to content

Commit f4b0ba3

Browse files
si618claude
andcommitted
Move global usings from GlobalUsings.cs files to .csproj files
- Convert GlobalUsings.cs files to <Using> ItemGroup in project files - Remove GlobalUsings.cs files from both LeetCode.CSharp and LeetCode projects - Maintain same global imports functionality using MSBuild <Using> elements - Build, tests, and formatting all pass successfully 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent fb1b25f commit f4b0ba3

File tree

4 files changed

+32
-26
lines changed

4 files changed

+32
-26
lines changed

LeetCode.CSharp/GlobalUsings.cs

Lines changed: 0 additions & 9 deletions
This file was deleted.

LeetCode.CSharp/LeetCode.CSharp.csproj

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@
55
<RootNamespace>LeetCode.CSharp</RootNamespace>
66
</PropertyGroup>
77

8+
<ItemGroup>
9+
<Using Include="BenchmarkDotNet.Attributes" />
10+
<Using Include="BenchmarkDotNet.Columns" />
11+
<Using Include="BenchmarkDotNet.Configs" />
12+
<Using Include="BenchmarkDotNet.Diagnosers" />
13+
<Using Include="LeetCode.CSharp.Problems" />
14+
<Using Include="Shouldly" />
15+
<Using Include="System.Diagnostics.CodeAnalysis" />
16+
<Using Include="System.Text" />
17+
<Using Include="Xunit" />
18+
</ItemGroup>
19+
820
<ItemGroup>
921
<PackageReference Include="BenchmarkDotNet" />
1022
<PackageReference Include="coverlet.collector" />

LeetCode/GlobalUsings.cs

Lines changed: 0 additions & 17 deletions
This file was deleted.

LeetCode/LeetCode.csproj

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,26 @@
66
<OutputType>Exe</OutputType>
77
</PropertyGroup>
88

9+
<ItemGroup>
10+
<Using Include="BenchmarkDotNet.Loggers" />
11+
<Using Include="BenchmarkDotNet.Reports" />
12+
<Using Include="BenchmarkDotNet.Running" />
13+
<Using Include="LeetCode.Commands" />
14+
<Using Include="LeetCode.CSharp" />
15+
<Using Include="LeetCode.Menus" />
16+
<Using Include="LeetCode.Menus.Selections" />
17+
<Using Include="Lolcat" />
18+
<Using Include="Spectre.Console" />
19+
<Using Include="Spectre.Console.Cli" />
20+
<Using Include="Spectre.Console.Rendering" />
21+
<Using Include="System.ComponentModel" />
22+
<Using Include="System.Diagnostics.CodeAnalysis" />
23+
<Using Include="System.Reflection" />
24+
<Using Include="System.Text" />
25+
<Using Include="System.Text.Json.Nodes" />
26+
<Using Include="System.Text.RegularExpressions" />
27+
</ItemGroup>
28+
929
<ItemGroup>
1030
<PackageReference Include="BenchmarkDotNet" />
1131
<PackageReference Include="lolcat" />

0 commit comments

Comments
 (0)