Huang Xueyuan (Jessie)
Huang Xueyuan (Jessie)
Reading [code contract spec](https://github.com/Microsoft/CodeContracts/blob/master/Documentation/User%20Documentation/userdoc.pdf), docfx can reflect related attributes but not support generating `CodeContracts` of document yet? @vwxyzh @vicancy
Docfx doesn't support `CodeContracts` yet, I will play on Sandcastle to try generating `CodeContracts` first, then try to run docfx to check whether we have reflected related attribute like `ContractInvariantMethod`....
I tried to generate code contracts: - source code: https://github.com/hellosnow/ForCodeContract/tree/master/TestCodeContracts - generated yaml files: https://github.com/hellosnow/ForCodeContract/tree/master/yaml - generated html file snapshot:  @yaochangyu from your blog post [使用...
@yaochangyu yes i found it from your blog.
@928PJY is refactoring the code via #1547. @928PJY could you try on our updates to test whether we can repro this issue?
@ThomasEnioKohler I tried to run docfx 2.16.0 against [docfx-seed](https://github.com/docascode/docfx-seed), and I can see the _site folder, could you share your docfx.json with us? Did you include "dest": "_site" in it?
@ansyral according to http://dotnet.github.io/docfx/tutorial/howto_filter_out_unwanted_apis_attributes.html, should we use `attributeRules` instead of `apiRules` to filter out ObseloteAttribute? ```yaml attributeRules: - exclude: uidRegex: System\.ObsoleteAttribute$ type: Type ```
@vwxyzh yes you're right, I misunderstood the requirement
Docfx can log warning with line via [LogWarning Method](https://github.com/dotnet/docfx/blob/dev/src/Microsoft.DocAsCode.Build.Engine/HostService.cs#L284), and for this cross reference case, we can add logic to indicate line numbers in [CrossReferenceNotResolvedException](https://github.com/dotnet/docfx/blob/dev/src/Microsoft.DocAsCode.Build.Engine/TemplateModelTransformer.cs#L389)
@pascalberger we've added the line number info via #1722 , closed for now.