Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: XML Doc comments in JS

0
0
Hi,

I'm using ClearScript to provide extension points in one of our applications. As part of our build process, we're using Doxygen to generate API documentation for internal use. I'm having some trouble getting links in the documentation for the javascript extensions back to some of our .Net types to reference correctly.

Here's an example:

JS:
function DoSomething(utilities){
    ///<param name="utilities">An instance of foo.JSUtilities</param>
    ///<seealso cref="foo.JSUtilities" />
    // do stuff
}
C#:
namespace foo {
    public class JSUtilities {
    }
}
Is there some trick that I'm not getting to allow the JS xml docs to reference .Net types? Links within JS or within C# functions and types are fine, it only appears to be an issue where I'd like to reference C# types and functions from the JS xml comments.

Viewing all articles
Browse latest Browse all 2297