Can't run without setting a Startup Project first

You must set a startup project before running. This error has the following causes and solutions: