title: Visual Studio: A project with an output type of class library cannot be started directly in Release Mode
body: <pre><code>A project with an output type of class library cannot be started directly
  </code></pre>
  
  <p>I'm setting my solution to Release mode to test some functionality and this is the error I get. This is the settings I have and these work fine in Debug mode.</p>
  
  <ul>
  <li>Output Type: Class Library</li>
  <li>Startup Object: (Not set)</li>
  </ul>
  
  <p>The error occurs after I set my solution to Release mode (clean and build performed). Here's what I have done so far.</p>
  
  <ul>
  <li>Changed the Output Type to Windows Application and Console Application</li>
  <li>Set the Startup Object to Program.cs</li>
  <li>Deleted .suo file</li>
  </ul>