Skip to content

Commit 2c182e7

Browse files
authored
Merge pull request #4 from HenrikHoyer/master
namespace after usings in generated code
2 parents 1cac83f + e83a5ef commit 2c182e7

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

ExampleProject/ExampleProject.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
5-
<ImplicitUsings>enable</ImplicitUsings>
6-
<Nullable>enable</Nullable>
4+
<TargetFramework>net8.0</TargetFramework>
5+
<ImplicitUsings>enable</ImplicitUsings>
6+
<Nullable>enable</Nullable>
77
</PropertyGroup>
88

99
<ItemGroup>

Scr/IeuanWalker.Hangfire.RecurringJob.Generator/RecuringJobGenerator.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,12 @@ static void Generate(SourceProductionContext context, ImmutableArray<List<JobMod
9393

9494
StringBuilder sb = new();
9595

96-
sb.Append("namespace ").Append(assemblyName).Append(@";
97-
98-
// <auto-generated/>
96+
sb.Append(@"// <auto-generated/>
9997
10098
using Hangfire;
101-
using Microsoft.AspNetCore.Builder;
99+
using Microsoft.AspNetCore.Builder;");
100+
101+
sb.Append("\r\n\r\nnamespace ").Append(assemblyName).Append(@";
102102
103103
public static class RecurringJobRegistrationExtensions
104104
{

0 commit comments

Comments
 (0)