From 636a16c3010f4fa803cc9641ceed440bf3f32859 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20H=C3=B8yer?= Date: Fri, 15 Mar 2024 10:38:04 +0100 Subject: [PATCH 1/2] namespace after usings in generated code --- .../RecuringJobGenerator.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Scr/IeuanWalker.Hangfire.RecurringJob.Generator/RecuringJobGenerator.cs b/Scr/IeuanWalker.Hangfire.RecurringJob.Generator/RecuringJobGenerator.cs index 7ff4359..8c12d9c 100644 --- a/Scr/IeuanWalker.Hangfire.RecurringJob.Generator/RecuringJobGenerator.cs +++ b/Scr/IeuanWalker.Hangfire.RecurringJob.Generator/RecuringJobGenerator.cs @@ -93,12 +93,12 @@ static void Generate(SourceProductionContext context, ImmutableArray + sb.Append(@"// using Hangfire; -using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Builder;"); + + sb.Append("namespace ").Append(assemblyName).Append(@"; public static class RecurringJobRegistrationExtensions { From e83a5ef47ef295c3f0936845c613e70b90ae596e Mon Sep 17 00:00:00 2001 From: Ieuan Walker Date: Fri, 19 Apr 2024 08:38:06 +0100 Subject: [PATCH 2/2] fix formatting --- ExampleProject/ExampleProject.csproj | 6 +++--- .../RecuringJobGenerator.cs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ExampleProject/ExampleProject.csproj b/ExampleProject/ExampleProject.csproj index 935acaf..455bf8d 100644 --- a/ExampleProject/ExampleProject.csproj +++ b/ExampleProject/ExampleProject.csproj @@ -1,9 +1,9 @@  - net8.0 - enable - enable + net8.0 + enable + enable diff --git a/Scr/IeuanWalker.Hangfire.RecurringJob.Generator/RecuringJobGenerator.cs b/Scr/IeuanWalker.Hangfire.RecurringJob.Generator/RecuringJobGenerator.cs index 8c12d9c..3289f6f 100644 --- a/Scr/IeuanWalker.Hangfire.RecurringJob.Generator/RecuringJobGenerator.cs +++ b/Scr/IeuanWalker.Hangfire.RecurringJob.Generator/RecuringJobGenerator.cs @@ -98,7 +98,7 @@ static void Generate(SourceProductionContext context, ImmutableArray