From 873820efc7eeac7c60cd1fbfecb621e7d04c4fe8 Mon Sep 17 00:00:00 2001 From: Alexey Shytikov Date: Mon, 15 Oct 2018 10:41:57 +0200 Subject: [PATCH] Getting correct location of documentation file #8 --- Source/WebSocketRPC.JS/RPCJs.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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);