How to test XPath queries on a target assembly?
Internally, AspectDNG uses XPath to identify the aspects to weave and the target joinpoints. If you want to test an XPath query on a pre-compiled assembly, just query it like that: aspectdng.exe -query yourAssembly.exe (or .dll) //Type[match(., ‘*MyType*’)] The XPath queries will in fact be re-factored by AspectDNG. The real query will be displayed on the command line. The standard XPath functions are available, and you can also use the match() function that uses Regular Expressions to check a string content.