Improve QL check for path match on netcore.app.ref in exluded assemblies

This commit is contained in:
Tamas Vajk
2021-05-19 11:14:37 +02:00
parent a00c2ccf31
commit 53054290d1

View File

@@ -12,9 +12,7 @@ class AllExternalPublicDeclarations extends GeneratedDeclaration {
/** All framework assemblies. */
class NonTargetAssembly extends ExcludedAssembly {
NonTargetAssembly() {
exists(this.getFile().getAbsolutePath().indexOf("Microsoft.NETCore.App.Ref"))
}
NonTargetAssembly() { this.getFile().getAbsolutePath().matches("%Microsoft.NETCore.App.Ref%") }
}
from Assembly a