If I have multiple Projects in a Single Solution, how do I decide on my entry point?

I was trying out WPF for the first time and created a new project (Proj2) within my solution (Proj1). Never done this before. So I simple created an instance of MainWindow Class of Proj2 inside my Main Method in Proj1.

This kept giving me an error (something about STA threads). For the time being, I just made Proj2 as my StartUp Project.

What exactly is going on here and what's a simple fix?

by pope_says via /r/csharp

Leave a Reply