문제

I have a solution that uses a few portable class libraries and I can't figure out how to fix the default rules that look for certain attributes to be defined on the assembly when the assembly is a portable class library.

For example, the rule Mark assemblies with CLSCompliant

warnif count > 0 from a in Application.Assemblies where 
  !a.HasAttribute("System.CLSCompliantAttribute".AllowNoMatch())
select a

Based on the output it appears that NDepend is looking for the attribute as defined in mscorlib but in a portable class library the attribute is defined in System.Runtime.dll.

Is there a way to change the rule so it handles PCL projects properly?

Note: NDepend version 5.2.1.8320

도움이 되었습니까?

해결책

This issue has indeed been fixed as of NDepend v5.4.0.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top