Skip to content

Commit

Permalink
Fix locating linkedServerAssembly
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-Svensson committed Jun 12, 2024
1 parent aeef811 commit 32c9695
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ internal string GenerateCode(ClientCodeGenerationOptions options, SharedCodeServ
CodeGenerationHost host = new CodeGenerationHost(loggingService, sharedCodeService);

// If the server assembly has a DomainServiceEndpointRoutePatternAttribute, we use it to set the default EndpointRoutePattern
Assembly linkedServerAssembly = AssemblyUtilities.LoadAssembly(parameters.ServerAssemblies.First() + ".dll", loggingService);
Assembly linkedServerAssembly = AssemblyUtilities.LoadAssembly(parameters.ServerAssemblies.First(), loggingService);
if (SharedCodeGenUtilities.TryGetRoutePatternFromAssembly(linkedServerAssembly) is { } pattern)
{
options.DefaultEndpointRoutePattern = pattern;
Expand Down

0 comments on commit 32c9695

Please sign in to comment.