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 ASSEMBL开发者_开发百科IES
"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*"
精彩评论