If you are building a Windows Phone application and you are using your phone to debug AND you are using the Photo Chooser or or the Camera Launcher task you may have found out that it will not let you access the camera or pictures while you are connected to Zune.
But, you have to be connected to Zune to debug on the phone. Well, kind of. The Windows Phone Team put out a tool called WPConnect.exe that allows you to dubug on the phone without having Zune open.
Here are the steps.
- Connect your phone
- Make sure Zune launches and connects to your phone.
- Shut down Zune
- Using a Dos Prompt, Navigate to
- (for 64 bit machines) C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v7.1\Tools\WPConnect\x64
- (for 32 Bit machines) C:\Program Files\Microsoft SDKs\Windows Phone\v7.1\Tools\WPConnect\x86
- Type WPConnect.exe
It will then tell you that you are good to go.
NOW FOR THE EASY WAY
I got tired of having to navigate using a command prompt (Too may keystrokes) and I use this often enough to matter, so I created a shortcut for the Dos Prompt that takes me right to my designated spot in one click. Here is how you do it.
- Right-click in the open space of your desktop and click New > Shortcut.
- For the location, type or copy and paste the following:
- Click Next.
- For the name, type something descriptive, like “Command Prompt for WPConnect” then click Finish.
- Right-click on the new shortcut and choose Properties.
- Change the “Start In” field to whatever directory you want the command prompt to start in.In my case, I want it to start in the 64 bit folder we talked about above:
"C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v7.1\Tools\WPConnect\x64"
Be sure to include the quotation marks, and of course you would need to customize this file path to your own system (32 or 64).
Now when I want to use WPConnect. I just use the pined shortcut
and Type WPConnect.exe
Hope that helps!