Windows Phone Development Tool - Windows Phone Commands
Join the DZone community and get the full member experience.
Join For Freetoday i will be sharing this blog post about a tool that i came across on codeplex. it is known as windows phone commands . so the rest of this blog post will be about this new tool and its capabilities. so lets starts.
about windows phone commands
"so what is windows phone commands?" you ask. according to the creators of windows phone commands, it is:
“an open-source project built on top of. microsoft net 4.0, framework, a powerful tool to assist the development phone for windows 7.1 as isolate storage explorer (with copies of folders and files), deployer, build integrated, etc.”
it’s a tool which will assist us in windows phone development activities. in the sections to come we will go through its capabilities.
getting windows phone commands
so where can we find windows phone commands? since it’s an open source project it is hosted at codeplex. here is the url for the windows phone commands project on codeplex:http://wphonecommands.codeplex.com/
go to downloads and download the release. the package you download is a .vsix file i.e. visual studio extension file. extensions are nothing but software add-ons created for microsoft visual studio ide.
installing windows phone commands
before you install the windows phone commands, make sure you meet the prerequisites:
- microsoft visual studio 2010
- microsoft silverlight for windows phone toolkit
once you download the package from codeplex double click the .vsix file. you will see the following installation window:
click install and wait for it to complete. once installed the windows phone commands can be found by navigating to view > other windows > windows phone commands inside vs.net ide. here is a screenshot of the same:
feature discovery
lets take a lap around features of windows phone commands. so in following sections we will look at all the features supported.
connecting to emulator or device
when we first access the windows phone commands – i.e. we have not opened any windows phone project or solution and we open windows phone commands, we will be presented with following screen:
click the second icon ( he icon is depicted like a event icon) available on the icon bar located at the top. this is used to connect to a device or an emulator. the following is the ui we will get. note that other icons are disabled now.
for the sake of this blog post, i will be selecting windows phone emulator and click on the connect button. this will open the emulator and show the device info as below:
as you can see, this extension opens the emulator, connects to that and pulls the emulator info. it also can connect to a device and pull the device info. also note that two icons are enabled now. one icon – which is like a folder

show & refresh applications
this feature can show the installed applications on the emulator or device, run some of the common phone applications on the emulator and allows you to access certain phone settings with one click from the extension. here are the screenshots:clicking each options will load that application or feature on your emulator. since i don’t have a physical device i cant really tell if the same action is performed when we connect to a device.
deploy applications
this feature allows us to load any xap files and deploy directly to either the emulator or a device. you can browse and select a xap file from your system and load deploy it. here is the screen shot:isolated storage explorer
once you install an application, in the show & refresh applications section, the installed application will be shown as below.as you can see, the installed app is shown with its guid and we have three options provided as buttons below the application name – launch, isolated storage and uninstall. if you select the isolated storage button (icon in the middle), the isolated storage for the app will be shown as below:
if you right click on any file, you get options to copy, delete or rename that file. if you right click on any folder you get options to create new folder or add files.
manifest editor
until now the windows phone commands extension was used outside of a windows phone project or solution i.e. we did not have a project open. so the third icon in the top bar of the extension was not enabled. once you open any windows phone project or solution, this icon will light up. this icon is used to edit windows phone manifest of a project. i created a default databound windows phone project and here is the screenshot of the manifest editor capability:
one neat feature i liked here is the capabilities editing. instead of meddling with the xml – you can just check & uncheck couple of checkboxes and click on save manifest – the extension will do the xml writing. here is a screenshot of the same:
conclusion
this is a very handy tool to work with during windows phone development. there may be other tools out there which might be doing the same things but this one sits right inside the visual studio ide. manifest editing is a neat feature if somebody is not comfortable playing around with the xml. isolated storage explorer is another neat feature where, from right inside the ide, you can check out the isolated storage of your app and watch it change as you are running the app in the emulator. all in all, it is a nice tool to have while you develop windows phone apps. give it a try and let me know if this post helped you.
till next time, as usual, happy coding. code with passion, decode with patience.
Published at DZone with permission of , DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.
Comments