I am in the process of writing a module and I’ve hit a bit of a roadblock. Not all of the intended audience will be on Windows and there is a different version of a module I need in .NetCore. As far as I know there is no concept of OR in #requires (or in module manifest), so I effectively cannot use it. Right now my plan is to use ScriptsToPRocess in my manifest to force a check and fail/unload if neither is present. I feel like there should be a cleaner way though. Anyone have any experience or suggestions?
submitted by /u/verchalent
[link] [comments]
The post Is there a good way to require one of two modules be present? appeared first on How to Code .NET.