I’ll have a look at those too, thanks. I’ve got the other one working now, but it’s always useful to find other ways of doing things.
Adding it to the private ones didn’t help, unfortunately. Neither did getting 4.4.3. I also just tried starting a new project and adding it to the PrivateDependencyModuleNames of that one and the same thing happened.