Today 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 CommandsSo 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:
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:
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:– is used to Show & Refresh applications on the Emulator/Device. Another icon – which is like a phone & a hammer – allows you to deploy applications on to the Emulator or on to a device.
Show & Refresh ApplicationsThis 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:
Deploy ApplicationsThis 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 ExplorerOnce you install an application, in the Show & Refresh Applications section, the installed application will be shown as below.
Manifest EditorUntil 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:
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.