English 中文(简体)
Ndepend CQL to query types out of assembly wildcard
原标题:
  • 时间:2010-03-18 01:59:16
  •  标签:
  • ndepend
  • cql

In order to determine what low-level framework types a web application is directly using, one has to define each and every assembly involved.

SELECT TYPES FROM ASSEMBLIES
"Company.System.Framework",
"Company.System.Framework.ReferenceLookup",
"Company.System.Framework.Web",
"Company.System.Framework.Security",
"Company.System.Framework.Logging",
"Company.System.Framework.DMS"
WHERE IsDirectlyUsedBy "WebAssembly"

I cannot find any syntax to wildcard the list of assemblies. Is there no way to shortcut this? We have a lot of framework level assemblies.

i.e. Company.System.Framework.*

最佳回答

If filtering types using a namespace regex would be ok in your context, then you could use the following CQL query:

SELECT TYPES WHERE IsDirectlyUsedBy "ASSEMBLY:WebAssembly"
AND FullNameLike "Company.System.Framework*"
问题回答

暂无回答




相关问题
Building CQL in NDepend for verifying MVVM patterns

I wanted to verify few design patterns in C# code by static analysis. I want to verify these using NDepend. The application is built with MVVM design style, so typical design patterns that I would ...

CQL request composition

Is it possible to compose requests in CQL ? I would like to write something like: SELECT TYPES FROM ASSEMBLIES "myassemblie" WHERE IsUsing SELECT METHODS FROM ASSEMBLIES "myotherassemblie" WHERE ...

Ndepend CQL to query types out of assembly wildcard

In order to determine what low-level framework types a web application is directly using, one has to define each and every assembly involved. SELECT TYPES FROM ASSEMBLIES "Company.System.Framework", "...

How to restrict NDepend methods query on type attribute

I m trying to get NDepend to identify long methods using a modified version of the standard "Methods too big" query. I don t want to report long methods that the developers have little control over, ...

热门标签