×

First time here?

You are looking at the most recent posts. You may also want to check out older archives. Please leave a comment, ask a question and consider subscribing to the latest posts via RSS or email. Thank you for visiting!

As most of you know at MIX10, we released the first version of the Windows Phone 7 developer tools (which are free) targeting Silverlight and XNA development to the world.  This was a community technology preview (CTP) release and targeted Visual Studio 2010 RC at the time (which was the publically available version).  Since MIX10, Visual Studio 2010 has released in final form and the phone developer tools team has been working to get a working version finalized.

Windows Phone 7 Associated Press applicationToday is that day – we’ve just made available the Windows Phone Developer Tools CTP (April 2010 Refresh) (direct link download).  This is the installer that will install directly on your machine.  If you don’t have any version of the tools installed, this will install the Visual Studio express edition for Windows Phone 7 (free).  If you already have any released version of Visual Studio 2010, this will install the tools on top (integrated) into those.

This April refresh is still a CTP-quality and as such there are a few known issues with this latest release.  Our goal was at least to get a set of tools that would be available to enable people to move to Visual Studio 2010 release.  The known issues are documented in the release notes for the April 2010 refresh.  Specifically the first item as a known issue in the release notes:

Authenticode signed assemblies fail to load. When including Authenticode signed assemblies in your project, the application XAP will fail to deploy and run. This includes the use of Microsoft client libraries such as WCF Data Services, the Silverlight Toolkit, and 3rd party managed libraries. This issue will be resolved in a future release to permit the inclusion of Authenticode signed assemblies.

This might be annoying for some.  We will eventually get this fixed in a future release and understand this is annoying to some.  We apologize for this.  We do have a workaround for you in the manner of a PowerShell script (note: PowerShell is included in Windows 7, otherwise download a version here).  Here is the workaround (also noted on Charlie’s blog).

You will know if you hit this issue if your app deploys to the emulator but fails to actually run with a System.IO.FileLoadException then you are likely hitting this issue.

The PowerShell Script

Attached here is the PowerShell Script – right-click and save this somewhere known.

Download: wp7ctpfix.ps1

Using the script

Here’s the steps to using the script on the assemblies that will cause you issue (those signed assemblies).

  1. Copy the script to the folder containing the signed assemblies
  2. Open an elevated command prompt (this must be done in elevated mode) and enter powershell (type: powershell) – alternatively you could start powershell itself
  3. Run “.\wp7ctpfix.ps1 <your-signed-assembly-fully-qualified-path>” in the PowerShell window
  4. The script should show ‘operation succeeded’ if successful.
  5. A *new* assembly prefixed with “WP7_CTP_Fix_<signed-assembly>” in that directory

NOTE: If you get a warning that the script couldn’t be run, in PowerShell first run set-executionpolicy Unrestricted and then proceed (and reset back to Restricted if desired).

You’ll need to do this on all assemblies you reference that might be impacted.  NOTE: This does not alter the existing assembly, but rather creates a NEW COPY for you to use temporarily.

Using the fixed assemblies

Once you’ve completed the step above, you’ll have to change your project refrences:

  1. Expand the References section of your project and remove any of the problematic references
  2. Add a reference pointing to the newly created copies done in the step above

Using these fixed assemblies will only work in the emulator.  Since right now there is no means of application distribution for the masses, this isn’t an issue.  Again, we will be fixing this issue and it is only temporary – we have no announcements yet, however, on when the next update of the tools will be.  As noted in Charlie’s blog because this is a little bit of a ‘brute force’ technique, Microsoft is giving permission to do this with this fine print:

So as to enable you to load your applications on the pre-release version of the Windows Phone 7 operating system that is included with this April 2010 CTP of the Windows Phone Developer Tools, you may temporarily remove the signatures from any Microsoft-owned assemblies that you would otherwise be licensed to include in your programs, solely for the limited purpose of evaluating this CTP.  Upon the next pre-release of these Developer Tools or July 31, 2010, whichever is earlier, you must replace such signature-stripped assemblies with assemblies from which the signatures have not been removed.  Nothing in this statement should be interpreted as permission on behalf of owners of non-Microsoft assemblies.

What’s New in April refresh?

There are some new items in this refresh that we’ve changed/added which are noted in the What’s New topic in MSDN.  Here are some highlights:

And a few others – be sure to review the topic link above on MSDN.

What about Expression Blend?

Expression Blend 4 had a plugin that enabled Windows Phone 7 development as well.  This plugin has also been updated for this April 2010 refresh.  You must have the Expression Blend 4 RC installed first.

You can get the updated Blend plugin here:

Summary

Please read the release notes before installing the tools.  If you think any of the known issues will impact you significantly, please do  what you think is right (if that means sticking with the March CTP build on Visual Studio RC).  The bug above was discovered late in our plans.  We had to make a decision whether to hold up another potentially ‘weeks’ or release what we had in another CTP form.  In this case we chose the to release what we had to provide something that customers have been asking for. 

There are a few other known issues of this refresh that you should review, but also some new items as indicated above.

Other useful resources:

Hope this helps!


This work is licensed under a Creative Commons Attribution By license.


4/29/2010 11:14 AM | # re: Windows Phone 7 Developer Tools April 2010 Refresh
Expression Blend Add-in Preview for Windows Phone (April Refresh) download not working
Gravatar
4/29/2010 12:40 PM | # re: Windows Phone 7 Developer Tools April 2010 Refresh
Tim,
When are the Silverlight 4 tools for Visual Studio 2010 going to ship? Thanks for the runtime, but we need the final release version of the tools to do serious development!
4/29/2010 1:11 PM | # re: Windows Phone 7 Developer Tools April 2010 Refresh
Tom -- what do you feel are missing in the tools for 'serious development' -- the RC2 tools are release quality. Only minor bug fixes (or critical) will be included in the full release (which is about a few weeks away). You should feel comfortable using them as release quality.
Gravatar
4/29/2010 2:39 PM | # re: Windows Phone 7 Developer Tools April 2010 Refresh
Tim, I am very excited about Silverlight 4 and would like to use it. However, in terms of convincing management (managers) - it is difficult to pitch in for a product/tool that's not "officially released". Any clues as to when the final version of the tools will be released?
4/29/2010 2:45 PM | # re: Windows Phone 7 Developer Tools April 2010 Refresh
Tom -- as I noted...a few weeks away. Scott mentioned at DevConnections that we're about a month away.
4/29/2010 4:46 PM | # re: Windows Phone 7 Developer Tools April 2010 Refresh
Why the tools installed VS2010 express on my machine while I have VS2010 RTM Ultimate installed?

I mean, I have the plugin on my VS2010 Ultimate but I also have an Express edition installed "Microsoft Visual Studio 2010 Express for Windows Phone".

Is this normal?
4/29/2010 4:51 PM | # re: Windows Phone 7 Developer Tools April 2010 Refresh
Benjamin yes this is normal.
4/29/2010 5:15 PM | # re: Windows Phone 7 Developer Tools April 2010 Refresh
Developer Tools (April Refresh) download not working.
4/29/2010 10:05 PM | # re: Windows Phone 7 Developer Tools April 2010 Refresh
Release notes still state that you need Expression Blend 4 Beta to open Wp7 projects. Shouldn't it read RC?

In the scenarios not supported:
Opening Windows Phone projects in Expression Blend® is not supported, except for Expression Blend 4 Beta with “MICROSOFT EXPRESSION BLEND ADD-IN PREVIEW FOR WINDOWS PHONE.”
4/30/2010 4:12 PM | # re: Windows Phone 7 Developer Tools April 2010 Refresh
It does not work on Windows XP? Why? VS2010 works just find on this platform.
Gravatar
4/30/2010 6:45 PM | # re: Windows Phone 7 Developer Tools April 2010 Refresh
same here, I'm running win2008r2 any workaround ?
thanks
5/1/2010 1:38 AM | # re: Windows Phone 7 Developer Tools April 2010 Refresh
@Pekka - Yes you'll need the updated version of Blend RC for Windows Phone Dev.
you can get it here:
www.microsoft.com/.../details.aspx
Gravatar
5/3/2010 10:46 AM | # re: Windows Phone 7 Developer Tools April 2010 Refresh
Tim, help us out here !
=P
5/3/2010 11:18 AM | # re: Windows Phone 7 Developer Tools April 2010 Refresh
leo/robert/phong - check out the hack blogs.msdn.com/.../10005980.aspx
Gravatar
5/3/2010 12:27 PM | # re: Windows Phone 7 Developer Tools April 2010 Refresh
Thank you for the workaround Tim, you are the man !
do you think the introduced install limitation will remains at the rtm for the vp7 tools ?

Thank you again !
5/3/2010 1:22 PM | # re: Windows Phone 7 Developer Tools April 2010 Refresh
leo - unknown at this time what the reqs will be for the final.
5/3/2010 3:25 PM | # re: Windows Phone 7 Developer Tools April 2010 Refresh
Phong -- it's the emulator that's the issue here, not the tools. The emulator itself being a virtual image.
5/4/2010 3:26 PM | # re: Windows Phone 7 Developer Tools April 2010 Refresh
Are there plans to have the emulator working in XP for the final release?

5/24/2010 8:49 AM | # re: Windows Phone 7 Developer Tools April 2010 Refresh
Ras -- bitly is just a short URL service that I use. They protect the users when a shorturl is linked directly to an EXE -- which it is in this case.
5/29/2010 12:13 AM | # re: Windows Phone 7 Developer Tools April 2010 Refresh
Is there a technical reason these tools are not supported on Windows Server 2008 R2? I have to run a W7 inside of a hyper-v and thats not pretty for this type of dev.
5/29/2010 12:18 AM | # re: Windows Phone 7 Developer Tools April 2010 Refresh
Found the workaround!
blogs.msdn.com/.../10005980.aspx
10/4/2010 8:29 PM | # re: Windows Phone 7 Developer Tools April 2010 Refresh
I installed the windows phone emulator and when i open my project in blend everything turn into unsupported project. help me

 
Please add 5 and 6 and type the answer here:

DISCLAIMER:

The opinions/content expressed on this blog are provided "ASIS" with no warranties and are my own personal opinions/content (unless otherwise noted) and do not represent my employer's view in any way.