Skip to content

Commit

Permalink
Merge branch 'develop' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Codeh4ck committed Aug 6, 2023
2 parents 843ba91 + 44167fa commit 9d0c0f8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Codelux.ServiceStack/CoreService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ public sealed class CoreService : Service
{
public Task<VersionResponse> Get(VersionRequest request)
{
Assembly assembly = Assembly.GetCallingAssembly();
FileVersionInfo versionInfo = FileVersionInfo.GetVersionInfo(Assembly.GetCallingAssembly().Location);
Assembly assembly = Assembly.GetEntryAssembly();
if (assembly == null) assembly = Assembly.GetExecutingAssembly();

FileVersionInfo versionInfo = FileVersionInfo.GetVersionInfo(assembly.Location);

return Task.FromResult(new VersionResponse()
{
Version = versionInfo
});
}
}
}
}

0 comments on commit 9d0c0f8

Please sign in to comment.