简体   繁体   中英

(Xamarin) WinPhone app won't start

I'm working on a project using Xamarin to build an app for WinPhone and Android.

On the Android device, it works fine. When I try to run the app on the WinPhone device, the app starts opening and then it closes. On the console I see "TaskHost.exe has exited with code 0."

I don't see any error. A guy that was working on it before, was using the WinPhone device without problems. When I started working on it, the only thing I needed to change was the SQLite.WP80 version. He was using 3.8.7.1 and my VS only provided 3.8.8.1.

Has anyone faced a similar problem?

Or how can I see what is wrong? In the console output there is no errors. I've added a breakpoint in the begining of WinPhone, but it doesnt't arrive there.

Thanks in advance!

Have you changed your namespace? Check if the startup object in the project setup is set accordingly.

Finally I found the problem.

By returning the code revision, I found one where the WinPhone project was working on phone. Then, I started looking for differences. Someone renamed AppWP.xaml to AppWinPhone.xaml. Then, on project properties > startup object, it was blank. I just set the object back and it worked.

(Why not an error message saying what is wrong...)

Thanks!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM