Skip to content

Commit f8b118c

Browse files
committed
Chore: Rename example namespaces and projects, add FastEndpoints examples, and update dependencies
1 parent 242431b commit f8b118c

File tree

8 files changed

+57
-28
lines changed

8 files changed

+57
-28
lines changed

CodeOfChaos.Extensions.slnx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
<File Path=".github/workflows/workflow-todo.yml" />
1111
</Folder>
1212
<Folder Name="/examples/">
13-
<Project Path="examples/Examples.CodeOfChaos.Extensions.Analyzers/Examples.CodeOfChaos.Extensions.Analyzers.csproj" />
14-
<Project Path="examples/Examples.CodeOfChaos.Extensions.DependencyInjection/Examples.CodeOfChaos.Extensions.DependencyInjection.csproj" />
13+
<Project Path="examples/CodeOfChaosExamples.Extensions.Analyzers/CodeOfChaosExamples.Extensions.Analyzers.csproj" />
14+
<Project Path="examples/CodeOfChaosExamples.Extensions.DependencyInjection/CodeOfChaosExamples.Extensions.DependencyInjection.csproj" />
15+
<Project Path="examples/CodeOfChaosExamples.Extensions.FastEndpoints/CodeOfChaosExamples.Extensions.FastEndpoints.csproj" />
1516
</Folder>
1617
<Folder Name="/src/">
1718
<Project Path="src/CodeOfChaos.Extensions.Analyzers/CodeOfChaos.Extensions.Analyzers.csproj" />
@@ -20,6 +21,7 @@
2021
<Project Path="src/CodeOfChaos.Extensions.DependencyInjection.Generators/CodeOfChaos.Extensions.DependencyInjection.Generators.csproj" />
2122
<Project Path="src/CodeOfChaos.Extensions.DependencyInjection/CodeOfChaos.Extensions.DependencyInjection.csproj" />
2223
<Project Path="src/CodeOfChaos.Extensions.EntityFrameworkCore/CodeOfChaos.Extensions.EntityFrameworkCore.csproj" />
24+
<Project Path="src/CodeOfChaos.Extensions.FastEndpoints/CodeOfChaos.Extensions.FastEndpoints.csproj" />
2325
<Project Path="src/CodeOfChaos.Extensions.FluentValidation/CodeOfChaos.Extensions.FluentValidation.csproj" />
2426
<Project Path="src/CodeOfChaos.Extensions.MicrosoftLogging/CodeOfChaos.Extensions.MicrosoftLogging.csproj" />
2527
<Project Path="src/CodeOfChaos.Extensions.ObjectPool/CodeOfChaos.Extensions.ObjectPool.csproj" />

Directory.Packages.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
<PackageVersion Include="CodeOfChaos.CliArgsParser.Library" Version="5.1.3" />
2424
<PackageVersion Include="CodeOfChaos.GeneratorTools" Version="2.2.1" />
2525
<PackageVersion Include="CodeOfChaos.Testing.TUnit" Version="0.16.2" />
26+
<PackageVersion Include="FastEndpoints" Version="7.1.1" />
2627
<PackageVersion Include="FluentValidation" Version="12.1.0" />
2728
<PackageVersion Include="IsExternalInit" Version="1.0.3" />
2829
<PackageVersion Include="JetBrains.Annotations" Version="2025.2.2" />
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
2-
3-
<PropertyGroup>
4-
<TargetFrameworks>net9.0;net10.0</TargetFrameworks>
5-
<LangVersion>latest</LangVersion>
6-
</PropertyGroup>
7-
8-
<ItemGroup>
9-
<ProjectReference Include="..\..\src\CodeOfChaos.Extensions.Analyzers\CodeOfChaos.Extensions.Analyzers.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false"/> <ProjectReference Include="..\..\src\CodeOfChaos.Extensions\CodeOfChaos.Extensions.csproj"/>
10-
</ItemGroup>
11-
12-
</Project>
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFrameworks>net9.0;net10.0</TargetFrameworks>
5+
<LangVersion>latest</LangVersion>
6+
</PropertyGroup>
7+
8+
<ItemGroup>
9+
<ProjectReference Include="..\..\src\CodeOfChaos.Extensions.Analyzers\CodeOfChaos.Extensions.Analyzers.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false"/> <ProjectReference Include="..\..\src\CodeOfChaos.Extensions\CodeOfChaos.Extensions.csproj"/>
10+
</ItemGroup>
11+
12+
</Project>
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
// ---------------------------------------------------------------------------------------------------------------------
2-
// Imports
3-
// ---------------------------------------------------------------------------------------------------------------------
4-
using System;
5-
6-
namespace Examples.CodeOfChaos.Extensions.Analyzers;
7-
// ---------------------------------------------------------------------------------------------------------------------
8-
// Code
9-
// ---------------------------------------------------------------------------------------------------------------------
10-
public class ToGuidDiagnostic {
11-
public Guid Something() => "b60fbc5b-86eb-472b-bfc6-0439d9a70e94".ToGuid();
12-
// public Guid SomethingWrong() => "alpha".ToGuid();
13-
}
1+
// ---------------------------------------------------------------------------------------------------------------------
2+
// Imports
3+
// ---------------------------------------------------------------------------------------------------------------------
4+
using System;
5+
6+
namespace CodeOfChaosExamples.Extensions.Analyzers;
7+
// ---------------------------------------------------------------------------------------------------------------------
8+
// Code
9+
// ---------------------------------------------------------------------------------------------------------------------
10+
public class ToGuidDiagnostic {
11+
public Guid Something() => "b60fbc5b-86eb-472b-bfc6-0439d9a70e94".ToGuid();
12+
// public Guid SomethingWrong() => "alpha".ToGuid();
13+
}

examples/Examples.CodeOfChaos.Extensions.DependencyInjection/ExampleService.cs renamed to examples/CodeOfChaosExamples.Extensions.DependencyInjection/ExampleService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using CodeOfChaos.Extensions.DependencyInjection;
55
using Microsoft.Extensions.DependencyInjection;
66

7-
namespace Examples.CodeOfChaos.Extensions.DependencyInjection;
7+
namespace CodeOfChaosExamples.Extensions.DependencyInjection;
88

99
// ---------------------------------------------------------------------------------------------------------------------
1010
// Code
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net10.0</TargetFramework>
5+
<ImplicitUsings>enable</ImplicitUsings>
6+
<Nullable>enable</Nullable>
7+
</PropertyGroup>
8+
9+
<ItemGroup>
10+
<PackageReference Include="FastEndpoints" />
11+
</ItemGroup>
12+
13+
</Project>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// ---------------------------------------------------------------------------------------------------------------------
2+
// Imports
3+
// ---------------------------------------------------------------------------------------------------------------------
4+
namespace CodeOfChaosExamples.Extensions.FastEndpoints;
5+
6+
// ---------------------------------------------------------------------------------------------------------------------
7+
// Code
8+
// ---------------------------------------------------------------------------------------------------------------------
9+
public static class Program {
10+
public static void Main(string[] args) {
11+
12+
}
13+
}

0 commit comments

Comments
 (0)