diff --git a/Source/WebSocketRPC.JS/RPCJs.cs b/Source/WebSocketRPC.JS/RPCJs.cs index 4968de2..21601ff 100644 --- a/Source/WebSocketRPC.JS/RPCJs.cs +++ b/Source/WebSocketRPC.JS/RPCJs.cs @@ -108,10 +108,7 @@ public static string GenerateCallerWithDoc(string xmlDocPath, RPCJsSettingsJavascript API. public static string GenerateCallerWithDoc(RPCJsSettings settings = null) { - var assembly = Assembly.GetEntryAssembly(); - var fInfo = new FileInfo(assembly.Location); - - var xmlDocPath = Path.ChangeExtension(assembly.Location, ".xml"); + var xmlDocPath = Path.ChangeExtension(typeof(T).Assembly.Location, ".xml"); if (!File.Exists(xmlDocPath)) return GenerateCaller(settings);