Skip to content

Commit

Permalink
Trying to let the generated code path work. Closes GH-676
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremydmiller committed Jan 15, 2024
1 parent 2113b21 commit 4c91056
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/Wolverine/HostBuilderExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,12 @@ internal static IHostBuilder UseWolverine(this IHostBuilder builder, WolverineOp
}
#endif

options.CodeGeneration.GeneratedCodeOutputPath =
directory!.AppendPath("Internal", "Generated");
// Don't correct for the path if it's already been set
if (options.CodeGeneration.GeneratedCodeOutputPath == "Internal/Generated")
{
options.CodeGeneration.GeneratedCodeOutputPath =
directory!.AppendPath("Internal", "Generated");
}

return options;
});
Expand Down
2 changes: 1 addition & 1 deletion src/Wolverine/Wolverine.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="FastExpressionCompiler" Version="4.0.0" />
<PackageReference Include="Lamar.Microsoft.DependencyInjection" Version="13.0.1" />
<PackageReference Include="Lamar.Microsoft.DependencyInjection" Version="13.0.2" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="Oakton" Version="6.1.0" />
<PackageReference Include="System.Net.NameResolution" Version="4.3.0" />
Expand Down

0 comments on commit 4c91056

Please sign in to comment.