title: Visual Studio 2019 - start up object not found
body: <p>I am having a solution in Visual Studio 2019 (16.11.4).
  Beside others it contains a Console App (Console App) with some hosted background services
  and a second console application (DevStarter). DevStarter references ConsoleApp and some other projects in order to create a build with all references. This part works.</p>
  <p>In the properties of the DevStarter project I can even select the Demo.ConsoleApp.Program class as start up project.</p>
  <p>But when I start and build the exception occurs:</p>
  <pre><code>Could not find 'Demo.ConsoleApp.Program' specified for Main method.
  </code></pre>
  <p>Any hints how to debug, what to check and fix it?</p>
  <hr />
  <p>Unfortunatly existing questions with answers like &quot;restart visual studio&quot; or &quot;set the startup object&quot; didn't help me here.</p>
  <hr />
  <p>Seems if I recreate a single solution with two console apps (containing just the main method with hello world) it doesn't work neither.
  May this feature is broken...</p>