Skip to content
This repository has been archived by the owner on Dec 20, 2019. It is now read-only.

Commit

Permalink
Merge pull request #9 from shytikov/issue-8
Browse files Browse the repository at this point in the history
Getting correct location of documentation file #8
  • Loading branch information
dajuric committed Oct 15, 2018
2 parents 1438fed + 873820e commit 3a932f1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Source/WebSocketRPC.JS/RPCJs.cs
Expand Up @@ -128,10 +128,7 @@ public static string GenerateCallerWithDoc<T>(string xmlDocPath, RPCJsSettings<T
/// <returns>Javascript API.</returns>
public static string GenerateCallerWithDoc<T>(RPCJsSettings<T> 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);
Expand Down

0 comments on commit 3a932f1

Please sign in to comment.