title: How to stop Main from being auto-generated in WPF?
body: <p>I'm trying to make a single instance WPF application using the hints on:</p>
  
  <p><a href="https://stackoverflow.com/questions/19147/what-is-the-correct-way-to-create-a-single-instance-application">What is the correct way to create a single-instance application?</a></p>
  
  <p>This ultimately requires changes to Main().  In WPF, Main() seems to be auto-generated.  I'd rather not modify autogenerated code.  Is there a way to suppress Main from being auto-generated?</p>
  
  <p>(alternatively, if you know of a better single app instance pattern for WPF that doesn't rely on modifying auto-generated code, please suggest it)</p>