Make svcutil pick up documentation from C# files?

后端 未结 2 1226
执笔经年
执笔经年 2021-01-14 05:24

Folks,

I\'m creating a new WCF Service and started with my Service interface. Looks something like:

   public interface ISomethingService
    {
              


        
2条回答
  •  再見小時候
    2021-01-14 05:31

    svcutil.exe consumes the "mex" API, and only has access to a subset of the metadata. Comments aren't included (nor, IIRC, is [DescriptionAttribute] to any great extent).

    You might have to rely on external documentation (i.e. a help page / dead tree). One other option (although it breaks a number of pure SOA rules) is to ship the entities / interfaces in a dll + xml; svcutil (and the IDE) can re-use matching types from existing assemblies.

提交回复
热议问题