Skip to content

Commit

Permalink
Merge pull request #4 from HenrikHoyer/master
Browse files Browse the repository at this point in the history
namespace after usings in generated code
  • Loading branch information
IeuanWalker authored Apr 19, 2024
2 parents 1cac83f + e83a5ef commit 2c182e7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions ExampleProject/ExampleProject.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,12 @@ static void Generate(SourceProductionContext context, ImmutableArray<List<JobMod

StringBuilder sb = new();

sb.Append("namespace ").Append(assemblyName).Append(@";
// <auto-generated/>
sb.Append(@"// <auto-generated/>
using Hangfire;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Builder;");

sb.Append("\r\n\r\nnamespace ").Append(assemblyName).Append(@";
public static class RecurringJobRegistrationExtensions
{
Expand Down

0 comments on commit 2c182e7

Please sign in to comment.