Stupidly, I deleted my App.xml and App.xml.cs files by mistake.
I am able to recreate these files as I use source control (a bit out of date, regrettably), however when I recreate these files and add them back into my project, VS cannot build the project because I’m informed I don’t have an entry point.
My workaround is to create a loading class with a ‘Main’ keyword for application entry and associate is with the project, however what is the correct procedure for recreating and re-associating my App.xml and App.xml.cs files in VS in my project.
Many thanks.
Your question intrigued me, so I created a new project and blew away the
App.xamlandApp.xaml.csfiles. I then added a window to the project and changed its Build Action in the File Properties editor toApplicationDefinitionfromPage, I then changed thexamland thexaml.csfiles to the Application Class. After which it worked correctly.i.e.
App.xaml
App.xaml.cs