Remove Assembly.GetCallingAssembly (#133)
This is always called from M.E.DI. That's not a good name to use here.
This commit is contained in:
parent
96dd7dcff3
commit
d47c834fa9
1 changed files with 3 additions and 3 deletions
|
|
@ -27,11 +27,11 @@ internal sealed class McpServerOptionsSetup(
|
|||
// if it otherwise lacks server information.
|
||||
if (options.ServerInfo is not { } serverInfo)
|
||||
{
|
||||
var assemblyName = (Assembly.GetEntryAssembly() ?? Assembly.GetCallingAssembly()).GetName();
|
||||
var assemblyName = Assembly.GetEntryAssembly()?.GetName();
|
||||
options.ServerInfo = new()
|
||||
{
|
||||
Name = assemblyName.Name ?? "McpServer",
|
||||
Version = assemblyName.Version?.ToString() ?? "1.0.0",
|
||||
Name = assemblyName?.Name ?? "McpServer",
|
||||
Version = assemblyName?.Version?.ToString() ?? "1.0.0",
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue