Aaron Stebner's WebLog

Thoughts about setup and deployment issues, WiX, XNA, the .NET Framework and Visual Studio

November, 2012

  • Aaron Stebner's WebLog

    XNA Windows Phone project templates are not available if Visual Studio 2012 is installed to a non-default path

    • 1 Comments

    The XNA Game Studio component that ships with the Windows Phone SDK 8.0 has a setup bug that causes some of the project templates to be installed to an incorrect location if Visual Studio 2012 or the Windows Phone SDK 8.0 is installed to a non-default path.  If you run into this issue, you can use the following steps to restore the missing project templates.

    If you are using Visual Studio 2012 Professional, Premium or Ultimate:

    1. Copy the following files from C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\Microsoft\XNA Game Studio 4.0\ProjectTemplates\CSharp\XNA Game Studio 4.0 to <Visual Studio non-default install path>\Common7\IDE\Extensions\Microsoft\XNA Game Studio 4.0\ProjectTemplates\CSharp\XNA Game Studio 4.0:

      CSXnaWindowsPhoneGame-v4.0.zip
      CSXnaWindowsPhoneLibrary-v4.0.zip

    2. Copy the following files from C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\Microsoft\XNA Game Studio 4.0\ProjectTemplates\VisualBasic\XNA Game Studio 4.0 to <Visual Studio non-default install path>\Common7\IDE\Extensions\Microsoft\XNA Game Studio 4.0\ProjectTemplates\VisualBasic\XNA Game Studio 4.0:

      VBXnaWindowsPhoneGame-v4.0.zip
      VBXnaWindowsPhoneLibrary-v4.0.zip

    3. From an elevated cmd prompt, run <Visual Studio install path>\Common7\IDE\devenv.exe /setup

    If you are using Visual Studio 2012 Express for Windows Phone:

    1. Copy the following files from C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\VPDExpressExtensions\Microsoft\XNA Game Studio 4.0\ProjectTemplates\CSharp\XNA Game Studio 4.0 to <Visual Studio non-default install path>\Common7\IDE\VPDExpressExtensions\Microsoft\XNA Game Studio 4.0\ProjectTemplates\CSharp\XNA Game Studio 4.0:

      CSXnaWindowsPhoneGame-v4.0.zip
      CSXnaWindowsPhoneLibrary-v4.0.zip

    2. Copy the following files from C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\VPDExpressExtensions\Microsoft\XNA Game Studio 4.0\ProjectTemplates\VisualBasic\XNA Game Studio 4.0 to <Visual Studio non-default install path>\Common7\IDE\VPDExpressExtensions\Microsoft\XNA Game Studio 4.0\ProjectTemplates\VisualBasic\XNA Game Studio 4.0:

      VBXnaWindowsPhoneGame-v4.0.zip
      VBXnaWindowsPhoneLibrary-v4.0.zip

    3. From an elevated cmd prompt, run <Visual Studio install path>\Common7\IDE\vpdexpress.exe /setup
  • Aaron Stebner's WebLog

    XNA Windows Phone projects must be upgraded from 7.0 to 7.1 to use with the Windows Phone SDK 8.0

    • 0 Comments

    The Windows Phone SDK 8.0 supports XNA Windows Phone game projects that target Windows Phone OS 7.1.  It does not support XNA Windows Phone game projects that target Windows Phone OS 7.0.  However, it does not block you from trying to open XNA projects that target Windows Phone OS 7.0.  Instead, it will allow you to open the projects and try to build them, and then you will see error messages about missing reference assemblies.

    In order to open and use your XNA projects that target Windows Phone OS 7.0 in the Windows Phone SDK 8.0, you must first upgrade them to target Windows Phone OS 7.1.  You can perform this upgrade in one of the following ways:

    1. If you do not have the Windows Phone SDK 7.1 installed, you can open your game project (*.csproj or *.vbproj) in a text editor such as Notepad and hand-edit it to upgrade it.  You will need to set the following property:

      <XnaRefreshLevel>1</XnaRefreshLevel>

      If your project file does not yet have the XnaRefreshLevel property, you will need to add it to the PropertyGroup at the top of the project file and set it to 1.  If your project file already has the XnaRefreshLevel property and it is set to 0, you will need to change it to 1.

    2. If you have the Windows Phone SDK 7.1 installed, you can open your 7.0 project with the Windows Phone SDK 7.1 and upgrade it by using the menu item in the Visual Studio 2010 IDE.  There are more detailed instructions in this documentation topic.
Page 1 of 1 (2 items)