I found that the problem goes away if you drag the active project out of a solution folder and put it at the top level. Just click the project, and drop it on the top line in the Soution window -- the line that says "Solution 'xxx' (nn projects".
That got me past the first hurdle, the "Cannot detect startup project".