venusian wrote:It's my understanding that one of the things coming along with 10 is a common API for Phone and Metro/desktop so that although the same binary won't work across all devices, rebuilding is as close to trivial as it can get.
This is something Apple has done a lot; Power PC/68k, Power PC/x86, 32bit/64bit. But in each case the app code has been the same. A Universal PowerPC/x86 app for example works identically whichever version of the code is run. It’s also straightforward to create; there’s a build setting which says “build both” and it just goes ahead and does it. In most cases the code is identical, the tools and OS take care of abstracting the differences, as long as you follow guidelines.
But it only works as the platforms work identically: Mac OS on the Power PC and x86 is the same. There are performance differences and once Apple transitioned to x86 they stopped supporting Power PC so it got left behind by newer APIs and OS features. But at the time when Apple was encouraging developers to make “Universal” apps the platforms were largely identical.
That’s not true of PCs and phones though. It can be true of PCs and tablets, especially a PC-like tablet such as Surface. And it can be true of tablets and phone, especially iOS and Android tablets that have more in common with phones. But it’s hard to think of an app that would work identically on a phone and PC.
In which case making a single app makes little sense. In theory it’s possible but you can end up with spaghetti code, with all sorts of conditional checks and compile-time flags to keep PC and phone specific code separate. Easier to make separate apps and share common features (data structures, network protocols, graphics assets, localisation assets) in DLLs, libraries and packages, which can be more easily re-used, including on platforms which MS’s tools don’t support.