How to ensure a mobile app is deployed to a mobile device?

We ran into an issue where everything was compiled correctly, but was not deployed to a mobile device during debugging. Of course, this caused strange bugs that were difficult to track down. The solution was simple, just delete the directories on the mobile device. Is there a way to enforce / force deploy files every time? Setting up VS? Does the version change on our build?

+1


source to share


4 answers


Using VS2005 and unmanaged code (C ++), I notice that VS will not deploy a new binary if there is already a higher version number on the device. If it's the same or below, then everything is fine.



+2


source


Go to Configuration Manager and you will see that for each project in the package there are a number of checkboxes for "Build" and "Deploy". Check "Deploy" for whatever you want to ensure deployment.



+1


source


Power toys for Windows Mobile developers have a utility called CECopy. This allows you to copy files from your PC to your mobile device. If all else fails, use this in Pre-Build events to copy the required files. If the copy fails, you will at least receive a notification.

+1


source


In my experience, ActiveSync is not very consistent.
Also, if the app is deploying correctly, if you uninstalled it from the device first, that probably isn't a configuration issue either. At least as of VS2005, there are no magic knobs in this regard. Is the deployment deploying very quickly or does it look like it is actually deploying?
My suggestion would be to try ActiveSync over Bluetooth. IMHO it is more stable than USB. (Unless, of course, you are running on an emulator ...)

0


source







All Articles