Wednesday, October 27, 2010

Setting up a 'RAM Drive' and deploying your windows mobile app.

Recently I have started doing windows mobile development and to my dismay the storage space for programs on the emulator is limited to 32 MB by default. Well, that would obviously not work especially when you are deploying WCF related namespaces alongwith your other project dependent assemblies.
Luckily, there is a work around to this problem. You can setup a virtual storage card on your device that points to a local drive on your development PC. This is how you would do it. I am using a Windows Mobile 6 Professional Emulator

1. Fire up the emulator from within Visual Studio (Tools -> Device Emulator Manager).
2. Click File -> Configure from the menu.
3. On the General Tab, towards the bottom you will see a place holder for your Shared Folder.
4. Click browse [..] and select the folder on your local machine you would like to use as a virtual storage card.
You should now be able to see details of your storage card on your device.

DEPLOYING your windows mobile app to the device and debugging in VS (I am using VS 2008).

1. In VS, right click your project and select properties.
2. Click the devices tab.
3. Click on the ellisis [..] button beside the Output file folder.
4. Select Root folder from the drop down and specify a path (subdirectory) where you would like VS to deploy your application.
5. Select Ok and you should be in business.