-
Notifications
You must be signed in to change notification settings - Fork 22
SA1645
TypeName |
IncludedDocumentationFileDoesNotExist |
CheckId |
SA1645 |
Category |
Documentation Rules |
An included Xml documentation file does not exist.
C# syntax provides a mechanism for inserting documentation for classes and elements directly into the code, through the use of Xml documentation headers. For an introduction to these headers and a description of the header syntax, see the following article: http://msdn.microsoft.com/en-us/magazine/cc302121.aspx.
As an alternative to authoring documentation directly within the code file, it is possible to place documentation for multiple elements within a separate Xml file, and then reference a section of that file within an element's documentation header. This causes the compiler to import the documentation for that element from the included document. For example:
///<include file="IncludedDocumentation.xml" path="root/EnabledMethodDocs" />
public bool Enabled(bool true)
{
}
A violation of this rule occurs when the included file does not exist at the given location, or cannot be loaded.
To fix a violation of this rule, correct the path to the included documentation file to point to a valid file location.
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1645:IncludedDocumentationFileDoesNotExist", Justification = "Reviewed.")]
- - SA0102 - Clean Install
- - Download
- - Documentation Rules - Layout Rules - Maintainability Rules - Naming Rules - Ordering Rules - Readability Rules - Spacing Rules - Suppressions
- - Adding a custom StyleCop settings page - Adding custom rule settings - Authoring a custom styleCop rule - Authoring rules metadata - Custom CSharp Language Service - Custom MSBuild Integration - Hosting StyleCop in a Custom Environment - Installing a Custom Rule - Integrating StyleCop Into Build Environments - Integrating StyleCop into MSBuild - Writing Custom Rules for StyleCop