Fixing WP7 app not starting after project rename

If your Windows Phone 7 project isn’t starting at all – you’re not even hitting App.xaml.cs, you’ve probably renamed the app project.

Fix: Set the startup object on the app project’s properties page

startup_object

In the .csproj file, this corresponds to the SilverlightAppEntry element:

I would call it a bug, that you cannot rename a project and have the SilverlightAppEntry update accordingly. But luckily, the work-around is simple.

Have a nice day!

This Post Has 6 Comments

  1. I’ve run into this before as well. The kicker (problem) is when the correct option is NOT dislayed in the Startup Object dropdown. gggrrrr I found when that happened to me, a simple restart of VS fixed it. Thankfully renaming top level namespaces doesn’t happen very often!

    If your readers are interested, I have some additional information as well (http://www.pchenry.com/Home/tabid/36/EntryId/299/Is-your-WP7-app-emulator-unexpectedly-dying-on-you-without-warning.aspx).

  2. Howdy. I just had another friend run SMACK into this issue and used your blog/this exact entry as a point of reference. Cool! Thanks.

    Have a good one!

  3. Thank you very much for precisely pointing out the problem and the solution.

    Best regards!

  4. Pingback: URL

  5. Thanks..It is working now

Leave a Reply

Close Menu