可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
Whenever I am starting to test an Windows Phone app (even a blank app) on emulator, I am getting error "The project needs to be deployed before it can be started". The emulator will be started & run successfully, still no luck in deploying app on emulator. Getting error DEP6100 & DEP6200.
These are the stuffs I tried till now:
- Checked "deploy" option in 'Configuration Manager'.
- Tried deploying Windows 10 Mobile, Windows Phone 8.1 & Windows Phone 8 blank apps on different types of emulators.
Although I am able to run apps on my device.
I am running Visual Studio Enterprise 2015 on Windows 10 Enterprise.
回答1:
I faced problem like that and I fixed it by right click on project > properties > change platform target to X86.
回答2:
The Emulator is x86 based and Phone is ARM architecture. To run the app in the emulator, change the CPU to x86 in the toolbar and compile it. Now you can deploy te App to the Emulator and test it.
回答3:
After trying every solution found on Internet I finally formatted my PC & installed VS2015. Well it worked, emulators are working now.
回答4:
I just started playing with Xamarin Forms, and ran into this error after following the Xamarin Forms Quickstart Guide. The error message actually said to Run the Deploy... for the project that you are trying to run. Deploying the project seems to install some Windows dependencies that might be required to run the UMP. After deploying the project, it ran without issue as a Windows Desktop app, or if you change to Device, then install emulator, as Windows Phone app.
回答5:
I run into this problem from time to time with new windows phone applications as well. I have never figured it out. What I have figured out though is I have an old windows phone 8.1 application that used to work. I have reduced it to mere basics. Anytime I run into this problem I just pick up the old application, copy what I need from the new application to it, and then I run it and rename whatever I need to rename in the old application. Crude but my easiest way out.