我在代码中触发了几个SA1623:PropertySummaryDocumentationMustMatchAccessors实例,其中我有一个类似于这样的属性:
/// <summary>
/// Gets or Sets the location to check for files.
/// </summary>
[Required]
public string SourceDirectory { get; set; }
这是在MSBuild自定义任务库中使用的代码,所涉及到的属性是Microsoft.Build.Framework.RequiredAttribute,如果有任何意义的话。
我正在使用StyleCop 4.7.14.0,没有修改默认规则。在StackOverflow、Google和该项目的开放问题日志和文档中快速搜索并没有提到这个问题,我是否做错了什么还是这是一个错误?
谢谢。