Skip to content

Commit 0b15c76

Browse files
committed
Chore: Add FastEndpoints and FastEndpoints.Generators extensions with initial setup and integration into the solution
1 parent f8b118c commit 0b15c76

File tree

9 files changed

+119
-4
lines changed

9 files changed

+119
-4
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ jobs:
2525
- name: Build
2626
run: dotnet build CodeOfChaos.Extensions.slnx --configuration Release --no-restore
2727

28-
# Ensure that the tests must pass
29-
# The job will fail automatically if any test fails because `dotnet test` exits with a non-zero code
3028
- name: Run tests
3129
run: dotnet test --solution CodeOfChaos.Extensions.slnx --configuration Release --no-restore --no-build
3230

@@ -44,4 +42,6 @@ jobs:
4442
dotnet nuget push src/CodeOfChaos.Extensions.DependencyInjection/bin/Release/*.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json --skip-duplicate
4543
dotnet nuget push src/CodeOfChaos.Extensions.DependencyInjection.Generators/bin/Release/*.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json --skip-duplicate
4644
dotnet nuget push src/CodeOfChaos.Extensions.FluentValidation/bin/Release/*.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json --skip-duplicate
47-
dotnet nuget push src/CodeOfChaos.Extensions.ObjectPool/bin/Release/*.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json --skip-duplicate
45+
dotnet nuget push src/CodeOfChaos.Extensions.ObjectPool/bin/Release/*.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json --skip-duplicate
46+
dotnet nuget push src/CodeOfChaos.Extensions.FastEndpoints/bin/Release/*.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json --skip-duplicate
47+
dotnet nuget push src/CodeOfChaos.Extensions.FastEndpoints.Generators/bin/Release/*.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json --skip-duplicate

CodeOfChaos.Extensions.slnx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<Project Path="src/CodeOfChaos.Extensions.DependencyInjection.Generators/CodeOfChaos.Extensions.DependencyInjection.Generators.csproj" />
2222
<Project Path="src/CodeOfChaos.Extensions.DependencyInjection/CodeOfChaos.Extensions.DependencyInjection.csproj" />
2323
<Project Path="src/CodeOfChaos.Extensions.EntityFrameworkCore/CodeOfChaos.Extensions.EntityFrameworkCore.csproj" />
24+
<Project Path="src/CodeOfChaos.Extensions.FastEndpoints.Generators/CodeOfChaos.Extensions.FastEndpoints.Generators.csproj" />
2425
<Project Path="src/CodeOfChaos.Extensions.FastEndpoints/CodeOfChaos.Extensions.FastEndpoints.csproj" />
2526
<Project Path="src/CodeOfChaos.Extensions.FluentValidation/CodeOfChaos.Extensions.FluentValidation.csproj" />
2627
<Project Path="src/CodeOfChaos.Extensions.MicrosoftLogging/CodeOfChaos.Extensions.MicrosoftLogging.csproj" />

examples/CodeOfChaosExamples.Extensions.FastEndpoints/CodeOfChaosExamples.Extensions.FastEndpoints.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4+
<OutputType>exe</OutputType>
45
<TargetFramework>net10.0</TargetFramework>
56
<ImplicitUsings>enable</ImplicitUsings>
67
<Nullable>enable</Nullable>
@@ -10,4 +11,9 @@
1011
<PackageReference Include="FastEndpoints" />
1112
</ItemGroup>
1213

14+
<ItemGroup>
15+
<ProjectReference Include="..\CodeOfChaosExamples.Extensions.Analyzers\CodeOfChaosExamples.Extensions.Analyzers.csproj" />
16+
<ProjectReference Include="..\CodeOfChaosExamples.Extensions.DependencyInjection\CodeOfChaosExamples.Extensions.DependencyInjection.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false"/>
17+
</ItemGroup>
18+
1319
</Project>
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>netstandard2.0</TargetFramework>
5+
<IsPackable>false</IsPackable>
6+
<Nullable>enable</Nullable>
7+
<LangVersion>latest</LangVersion>
8+
9+
<DevelopmentDependency>true</DevelopmentDependency>
10+
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
11+
<IsRoslynComponent>true</IsRoslynComponent>
12+
<IsPackable>true</IsPackable>
13+
<IncludeBuildOutput>false</IncludeBuildOutput>
14+
<IncludeSymbols>false</IncludeSymbols>
15+
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
16+
17+
<PackageId>CodeOfChaos.Extensions.FastEndpoints.Generators</PackageId> <!-- Main package name -->
18+
<Version>0.87.0</Version> <!-- Package version -->
19+
<Authors>Anna Sas</Authors>
20+
<Description>A small package allowing easy collection of dependency injection services</Description>
21+
<PackageProjectUrl>https://github.com/code-of-chaos/cs-code_of_chaos-extensions</PackageProjectUrl>
22+
<PackageTags>dependency injection;di</PackageTags>
23+
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
24+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
25+
<DebugType>embedded</DebugType>
26+
<PackageLicenseFile>LICENSE</PackageLicenseFile>
27+
<PackageReadmeFile>README.md</PackageReadmeFile>
28+
<PackageIcon>icon.png</PackageIcon>
29+
</PropertyGroup>
30+
31+
32+
<ItemGroup>
33+
<None Include="../../LICENSE" Pack="true" PackagePath="" Visible="false" />
34+
<None Include="../../src/CodeOfChaos.Extensions.FastEndpoints/README.md" Pack="true" PackagePath="" />
35+
<None Include="../../assets/icon.png" Pack="true" PackagePath="" Visible="false" />
36+
</ItemGroup>
37+
38+
<ItemGroup>
39+
<PackageReference Include="IsExternalInit">
40+
<PrivateAssets>all</PrivateAssets>
41+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
42+
</PackageReference>
43+
<PackageReference Include="JetBrains.Annotations" />
44+
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" PrivateAssets="all" />
45+
<PackageReference Include="Microsoft.CodeAnalysis.Common" PrivateAssets="all" />
46+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" PrivateAssets="all" />
47+
<PackageReference Include="CodeOfChaos.GeneratorTools">
48+
<PrivateAssets>all</PrivateAssets>
49+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
50+
</PackageReference>
51+
</ItemGroup>
52+
53+
<ItemGroup>
54+
<None Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
55+
</ItemGroup>
56+
57+
</Project>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// ---------------------------------------------------------------------------------------------------------------------
2+
// Imports
3+
// ---------------------------------------------------------------------------------------------------------------------
4+
using Microsoft.CodeAnalysis;
5+
6+
namespace CodeOfChaos.Extensions.FastEndpoints.Generators;
7+
8+
// ---------------------------------------------------------------------------------------------------------------------
9+
// Code
10+
// ---------------------------------------------------------------------------------------------------------------------
11+
[Generator(LanguageNames.CSharp)]
12+
public class MessageBrokerGenerator : IIncrementalGenerator {
13+
14+
public void Initialize(IncrementalGeneratorInitializationContext context) {
15+
throw new System.NotImplementedException();
16+
}
17+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
<ItemGroup>
14+
<None Update="README.md">
15+
<Pack>true</Pack>
16+
<PackagePath></PackagePath>
17+
</None>
18+
</ItemGroup>
19+
20+
</Project>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// ---------------------------------------------------------------------------------------------------------------------
2+
// Imports
3+
// ---------------------------------------------------------------------------------------------------------------------
4+
namespace CodeOfChaos.Extensions.FastEndpoints;
5+
6+
// ---------------------------------------------------------------------------------------------------------------------
7+
// Code
8+
// ---------------------------------------------------------------------------------------------------------------------
9+
public interface IMessageBroker {
10+
11+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# ⛓️‍💥 CodeOfChaos.Extensions.FastEndpoints ⛓️‍💥

src/Tools.CodeOfChaos.Extensions/Program.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ public static async Task Main(string[] args) {
3030
"CodeOfChaos.Extensions.DependencyInjection",
3131
"CodeOfChaos.Extensions.DependencyInjection.Generators",
3232
"CodeOfChaos.Extensions.FluentValidation",
33-
"CodeOfChaos.Extensions.ObjectPool"
33+
"CodeOfChaos.Extensions.ObjectPool",
34+
"CodeOfChaos.Extensions.FastEndpoints",
35+
"CodeOfChaos.Extensions.FastEndpoints.Generators"
3436
);
3537

3638
// Finally, start executing

0 commit comments

Comments
 (0)