They were always going to struggle to get app developers to port to Windows Mobile, so I'm not sure it was ill conceived to provide a single target for desktop and mobile, with the hope that more developers would take the time to support all form factors if they could use a single code base.
It was a gamble that enough native desktop apps would remain for this strategy to pay off, but they lost to web and electron apps.