If you have a module containing classes that do not have [DscResource()] attribute Get-DscResource will return those classes as if they were a resource.
PSDsc should check classes to see if they have that attribute and not return them.
Expected behavior
# classes without `[DscResource()]` are not returned as resources
Prerequisites
Steps to reproduce
If you have a module containing classes that do not have
[DscResource()]
attributeGet-DscResource
will return those classes as if they were a resource.PSDsc should check classes to see if they have that attribute and not return them.
Expected behavior
Actual behavior
Error details
No response
Environment data
Version
2.0.6
Visuals
No response