locked
What is proper setup to develop for both Windows Phone 7.5 and 8.0 on a Windows 8 machine? RRS feed

  • Question

  • I'm currently developing for WP7.5 using VS Express 2012 for Windows Phone on a Windows 8 machine. My project began as a Visual C# Windows Phone Pivot App and hasn't deviated much from that template.  This generally works-- I can deploy my app to both the emulator and my WP7.5 phone.  However I'm having trouble adding to my project certain controls that have surfaced in the various Windows Phone Toolkits, like the ToggleSwitch and RichTextBox controls.  Some questions:

    • I have the Windows Phone 8.0 SDK installed, thinking that will support development for WP7.5.  However the only two targets I see are Windows Phone OS 7.1 and Windows Phone OS 8.0.  I'm currently targeting 7.1, will this support 7.5?  Including all the controls available for 7.5?
    • I installed the October 2012 version of the Windows Phone Toolkit trying to get the ToggleSwitch control.  This alone didn't completely work.  When I selected it in the Choose Toolbox Items... dialog I got the following warning:  The following controls were successfully added to the toolbox but are not enabled in the active designer.  Make sure the controls to add are compatible with the current designer and .NET Framework version.  Eventually I installed the WP 7.1 and 7.1.1 SDKs and was able to add the ToggleSwitch control to my project using Blend for VS (still didn't work using VS2012 for WP).  So I don't know if my success here was because I installed the 7.1 SDK or because I used Blend.   Is the recommended setup in my situation to have both the 7.1 and 8.0 SDKs installed?  Does the order in which they're installed matter?  Why do some controls only appear in the Blend toolbox?

    I still can't get certain controls like ToggleSwitch and RichTextBox to appear in my toolbox in the VS2012 IDE.  What I'm seeking here is some guidance on what tools / configurations I should have in place so that I can develop for both WP 7.5 and WP 8.0 on a Windows 8 machine, with all of the appropriate controls available in my toolbox in the VS 2012 IDE.

    Following are the product versions I'm running, obtained through the IDE.  Thanks for any help. 

    Microsoft Visual Studio Express 2012 for Windows Phone
    Version 11.0.51106.01 Update 1
    Microsoft .NET Framework
    Version 4.5.50709

    Installed Version: PD Express

    Team Explorer for Visual Studio 2012   04937-004-0029003-02478
    Microsoft Team Explorer for Visual Studio 2012

    Visual Basic 2012   04937-004-0029003-02478
    Microsoft Visual Basic 2012

    Visual C# 2012   04937-004-0029003-02478
    Microsoft Visual C# 2012

    Visual C++ 2012   04937-004-0029003-02478
    Microsoft Visual C++ 2012

    Visual Studio 2012 Code Analysis Spell Checker   04937-004-0029003-02478
    Microsoft® Visual Studio® 2012 Code Analysis Spell Checker

    Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

    The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

    Windows Phone SDK 8.0 - ENU   04937-004-0029003-02478
    Windows Phone SDK 8.0 - ENU

    Microsoft Advertising SDK for Windows Phone   6.2.923.0
    Microsoft Advertising SDK for Windows Phone
    Build 6.2.923.0

    Microsoft XNA Game Studio   4.0
    Microsoft XNA Game Studio 4.0
    Build 4.0.40906.0

    NuGet Package Manager   2.1.31002.9028
    NuGet Package Manager in Visual Studio. For more information about NuGet, visit ...

    Friday, December 7, 2012 8:12 PM

Answers

  • I have the Windows Phone 8.0 SDK installed, thinking that will support development for WP7.5.  However the only two targets I see are Windows Phone OS 7.1 and Windows Phone OS 8.0.  I'm currently targeting 7.1, will this support 7.5? Including all the controls available for 7.5?

    The numbering scheme is confusing. 7.1 and 7.5 refer to the same thing. The OS version is officially 7.1 but the phone is marketed as 7.5 to consumers. Here's a summary: http://en.wikipedia.org/wiki/Windows_Phone_version_history. The bottom line is that you only need the WP8 SDK to develop for both.

    NuGet (you already have it installed) is the recommended way to add the Phone Toolkit to a project.

    1. Right-click on your project's References folder and select Manage NuGet Packages
    2. In the Nuget dialog, enter "Phone Toolkit" in the search field at top right. It will return a list of search matches.
    3. Select "Windows Phone toolkit" in the list and click on the Install button. It will add the Toolkit to your project.

    In your xaml pages that will use the Toolkit, add this reference:

        xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"



    Richard Woo
    • Marked as answer by kzig Sunday, December 9, 2012 4:35 AM
    Friday, December 7, 2012 10:19 PM
  • The Windows Phone 8 SDK has tools for building both WP7 apps as well as WP8 apps.
    • Marked as answer by kzig Sunday, December 9, 2012 4:36 AM
    Saturday, December 8, 2012 12:22 AM

All replies

  • I have the Windows Phone 8.0 SDK installed, thinking that will support development for WP7.5.  However the only two targets I see are Windows Phone OS 7.1 and Windows Phone OS 8.0.  I'm currently targeting 7.1, will this support 7.5? Including all the controls available for 7.5?

    The numbering scheme is confusing. 7.1 and 7.5 refer to the same thing. The OS version is officially 7.1 but the phone is marketed as 7.5 to consumers. Here's a summary: http://en.wikipedia.org/wiki/Windows_Phone_version_history. The bottom line is that you only need the WP8 SDK to develop for both.

    NuGet (you already have it installed) is the recommended way to add the Phone Toolkit to a project.

    1. Right-click on your project's References folder and select Manage NuGet Packages
    2. In the Nuget dialog, enter "Phone Toolkit" in the search field at top right. It will return a list of search matches.
    3. Select "Windows Phone toolkit" in the list and click on the Install button. It will add the Toolkit to your project.

    In your xaml pages that will use the Toolkit, add this reference:

        xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"



    Richard Woo
    • Marked as answer by kzig Sunday, December 9, 2012 4:35 AM
    Friday, December 7, 2012 10:19 PM
  • The Windows Phone 8 SDK has tools for building both WP7 apps as well as WP8 apps.
    • Marked as answer by kzig Sunday, December 9, 2012 4:36 AM
    Saturday, December 8, 2012 12:22 AM