Skip to content

Commit d5adb7d

Browse files
committed
Chore: Update package versions and refactor CLI parser usage
1 parent 0c49fdb commit d5adb7d

File tree

19 files changed

+43
-50
lines changed

19 files changed

+43
-50
lines changed

src/CodeOfChaos.Extensions.AspNetCore.Components/CodeOfChaos.Extensions.AspNetCore.Components.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
</ItemGroup>
3030

3131
<ItemGroup>
32-
<PackageReference Include="Microsoft.AspNetCore.Components" Version="9.0.7" />
32+
<PackageReference Include="Microsoft.AspNetCore.Components" Version="9.0.8" />
3333
</ItemGroup>
3434

3535
</Project>

src/CodeOfChaos.Extensions.DependencyInjection.Generators/CodeOfChaos.Extensions.DependencyInjection.Generators.csproj

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,17 @@
3333
</ItemGroup>
3434

3535
<ItemGroup>
36-
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="4.14.0">
36+
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="4.14.0" PrivateAssets="all" />
37+
<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="4.14.0" PrivateAssets="all" />
38+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.14.0" PrivateAssets="all" />
39+
<PackageReference Include="CodeOfChaos.GeneratorTools" Version="2.0.0">
3740
<PrivateAssets>all</PrivateAssets>
3841
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3942
</PackageReference>
40-
<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="4.14.0" />
41-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.14.0">
42-
<PrivateAssets>all</PrivateAssets>
43-
</PackageReference>
44-
<PackageReference Include="CodeOfChaos.GeneratorTools" Version="1.11.0" Pack="true" GeneratePathProperty="true" PrivateAssets="all" />
4543
</ItemGroup>
4644

4745
<ItemGroup>
4846
<None Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
49-
<None Include="$(PkgCodeOfChaos_GeneratorTools)\lib\netstandard2.0\*.dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
5047
</ItemGroup>
5148

5249

src/CodeOfChaos.Extensions.DependencyInjection/CodeOfChaos.Extensions.DependencyInjection.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
</ItemGroup>
2929

3030
<ItemGroup>
31-
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.7" />
32-
<PackageReference Include="Microsoft.Extensions.ObjectPool" Version="9.0.7" />
31+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.8" />
32+
<PackageReference Include="Microsoft.Extensions.ObjectPool" Version="9.0.8" />
3333
</ItemGroup>
3434

3535
</Project>

src/CodeOfChaos.Extensions.EntityFrameworkCore/CodeOfChaos.Extensions.EntityFrameworkCore.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
</PropertyGroup>
2424

2525
<ItemGroup>
26-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.7" />
26+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.8" />
2727
</ItemGroup>
2828

2929
<ItemGroup>

src/CodeOfChaos.Extensions.MicrosoftLogging/CodeOfChaos.Extensions.MicrosoftLogging.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
</PropertyGroup>
2424

2525
<ItemGroup>
26-
<PackageReference Include="JetBrains.Annotations" Version="2024.3.0" />
27-
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.7" />
26+
<PackageReference Include="JetBrains.Annotations" Version="2025.2.0" />
27+
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.8" />
2828
</ItemGroup>
2929

3030
<ItemGroup>

src/CodeOfChaos.Extensions.ObjectPool/CodeOfChaos.Extensions.ObjectPool.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
</ItemGroup>
2929

3030
<ItemGroup>
31-
<PackageReference Include="Microsoft.Extensions.ObjectPool" Version="9.0.7" />
31+
<PackageReference Include="Microsoft.Extensions.ObjectPool" Version="9.0.8" />
3232
</ItemGroup>
3333

3434
</Project>

src/CodeOfChaos.Extensions.Serilog/CodeOfChaos.Extensions.Serilog.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
<ItemGroup>
2525
<PackageReference Include="CodeOfChaos.Ansi" Version="1.0.0" />
26-
<PackageReference Include="JetBrains.Annotations" Version="2024.3.0" />
26+
<PackageReference Include="JetBrains.Annotations" Version="2025.2.0" />
2727
<PackageReference Include="Serilog" Version="4.3.0" />
2828
<PackageReference Include="Serilog.Sinks.Async" Version="2.1.0" />
2929
<PackageReference Include="Serilog.Sinks.Console" Version="6.0.0" />

src/Tools.CodeOfChaos.Extensions/Program.cs

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,9 @@ public static class Program {
1212
public static async Task Main(string[] args) {
1313
// Register & Build the parser
1414
// Don't forget to add the current assembly if you built more tools for the current project
15-
CliArgsParser parser = CliArgsBuilder.CreateFromConfig(
16-
config => {
17-
config.AddCommandsFromAssemblyEntrypoint<IAssemblyEntry>();
18-
}
19-
).Build();
15+
ICliParser parser = CliParser.CreateBuilder()
16+
.AddFromAssembly<IAssemblyEntry>()
17+
.Build();
2018

2119
// We are doing this here because else the launchSettings.json file becomes a humongous issue to deal with.
2220
// Sometimes CLI params is not the answer.
@@ -34,10 +32,9 @@ public static async Task Main(string[] args) {
3432
"CodeOfChaos.Extensions.FluentValidation",
3533
"CodeOfChaos.Extensions.ObjectPool"
3634
);
37-
38-
string oneLineArgs = InputHelper.ToOneLine(args).Replace("%PROJECTS%", projects);
39-
40-
// Finally start executing
41-
await parser.ParseAsync(oneLineArgs);
35+
36+
// Finally, start executing
37+
string oneLineArgs = ArgsInputHelper.ToOneLine(args).Replace("%PROJECTS%", projects);
38+
await parser.ExecuteAsync(oneLineArgs);
4239
}
4340
}

src/Tools.CodeOfChaos.Extensions/Tools.CodeOfChaos.Extensions.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<PackageReference Include="CodeOfChaos.CliArgsParser.Library" Version="4.10.0" />
12+
<PackageReference Include="CodeOfChaos.CliArgsParser.Library" Version="5.0.0" />
1313
</ItemGroup>
1414

1515
</Project>

tests/Tests.CodeOfChaos.Extensions.Analyzers/Tests.CodeOfChaos.Extensions.Analyzers.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<ItemGroup>
1313
<PackageReference Include="CodeOfChaos.Testing.TUnit" Version="0.13.0" />
14-
<PackageReference Include="TUnit" Version="0.25.21" />
14+
<PackageReference Include="TUnit" Version="0.55.6" />
1515
</ItemGroup>
1616

1717
<ItemGroup>

0 commit comments

Comments
 (0)