How to get comments in intellisense from service link methods?

I have a WCF C # service with methods that contain comments in a summary. I use service links from my WPF project (client).

I commented in my interface:

    /// <summary>
    /// Allow to get Template
    /// </summary>
    /// <returns></returns>
    [OperationContract]
    Template GetTemplate();

And in my ministry too:

    /// <summary>
    /// Allow to get Template
    /// </summary>
    /// <returns></returns>
    public Template GetTemplate()
    {
        return new Template();
    }

I can use my methods with my client:

Template template = myServiceReferenceClient.GetTemplate();

But I want my comments (β€œLet me get a template” in this case) in Intellisense from my client this way:

in this way

I checked the "XML document file" in the properties of my project project to have comments, but it does not work. I think the problem is that I use service links:

Service Links

+4
source share

Source: https://habr.com/ru/post/1666711/


All Articles