Skip to content

Commit 4c91056

Browse files
committed
Trying to let the generated code path work. Closes GH-676
1 parent 2113b21 commit 4c91056

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/Wolverine/HostBuilderExtensions.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,12 @@ internal static IHostBuilder UseWolverine(this IHostBuilder builder, WolverineOp
9898
}
9999
#endif
100100

101-
options.CodeGeneration.GeneratedCodeOutputPath =
102-
directory!.AppendPath("Internal", "Generated");
101+
// Don't correct for the path if it's already been set
102+
if (options.CodeGeneration.GeneratedCodeOutputPath == "Internal/Generated")
103+
{
104+
options.CodeGeneration.GeneratedCodeOutputPath =
105+
directory!.AppendPath("Internal", "Generated");
106+
}
103107

104108
return options;
105109
});

src/Wolverine/Wolverine.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</PropertyGroup>
99
<ItemGroup>
1010
<PackageReference Include="FastExpressionCompiler" Version="4.0.0" />
11-
<PackageReference Include="Lamar.Microsoft.DependencyInjection" Version="13.0.1" />
11+
<PackageReference Include="Lamar.Microsoft.DependencyInjection" Version="13.0.2" />
1212
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
1313
<PackageReference Include="Oakton" Version="6.1.0" />
1414
<PackageReference Include="System.Net.NameResolution" Version="4.3.0" />

0 commit comments

Comments
 (0)