I'm trying to make a single instance WPF application using the hints on:
What is the correct way to create a single-instance application?
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?
(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)