Pergunta

I have a copy of Visual Studio 2102 installed on my computer. Since my computer met all the requirements for the emulator (SLAT, Hardware Assisted Virtualization etc.), i downloaded the Windows Phone 8.0 SDK and proceeded to install it.

Unfortunately, i cannot create a new Windows Phone application. Project templates (Windows phone application, Pivot application, Panorama application etc) do not appear in VS2012 main page. The only available option is "Discover Windows phone tools" (which redirects you to the download page of the SDK). I tried to uninstall everything and repeat the process, but the result is the same.

I'm still able to open projects made with the old Windows phone SDK 7.1 and test them on the new emulator. This should be enough to prove that the installation was successfully completed.

I can't understand what went wrong. May you help me?

Foi útil?

Solução

I had a similar bug because my Visual Studio Pro is in French. When you install Windows phone SDK, an express version of vs is already installed, you can create phone project in this version and open these projects in vs pro but you cannot create phone project directly in vs pro, that's right ?

  • Go to : C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\ProjectTemplates\CSharp\Windows Phone

  • You should have a folder called 1033, it contains phone template for english version of visual studio. Copy and paste it then rename the copy in your code language (http://msdn.microsoft.com/en-us/library/0t12k0f0.aspx , for me it's 1036).

  • After that, close visual studio, launch C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\VsDevCmd.bat with admin rights and type : devenv.exe /InstallVSTemplates /ResetSettings

  • Relaunch visual studio pro, and you should have a Windows phone entry.

Outras dicas

Parallels provides a very good knowledge-base article on fixing this problem:

KB: Running Windows 8 Phone emulator in the Windows 8 virtual machine

Copy lang files also in: ...\IDE\ItemTemplates... ...\WindowsPhone\ProjectTemplates... It helped me!

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top