let's say I have a solution with dependencies like
System
Microsoft
Newtonsoft
other namespaces included via packages
MyNamespace.SubNamespace1
MyNamespace.SubNamespace2
...
MyNamespace.SubNamespace50
...
How do I check if an assembly in that solution references the namespace MyNamespace.SubNamespace50 but not any of the others from MyNamespace?
Now, I could use OnlyHaveDependenciesOn but then I'd have to list all the other dependencies apart from MyNamespace in there also (like System or Microsoft) - but I don't care about them. I only want to check for MyNamespace. NotHaveDependencyOn is also not an option because then I'd have to list all the gazillion sub namespaces.
I couldn't find any Except method or something like that. Any idea on that?
Hey there,
let's say I have a solution with dependencies like
How do I check if an assembly in that solution references the namespace
MyNamespace.SubNamespace50
but not any of the others fromMyNamespace
? Now, I could useOnlyHaveDependenciesOn
but then I'd have to list all the other dependencies apart fromMyNamespace
in there also (likeSystem
orMicrosoft
) - but I don't care about them. I only want to check forMyNamespace
.NotHaveDependencyOn
is also not an option because then I'd have to list all the gazillion sub namespaces. I couldn't find anyExcept
method or something like that. Any idea on that?