本文介绍了在没有模拟器的 Window 7 64 位上在 Visual Studio 2013 中开发 Window Store 应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

这将是一个很长的问题,但请耐心等待到最后.在详细介绍之前,以下是我的 PC 环境:

  • Windows 7 专业版 x64
  • Visual Studio 社区 2013 更新 4

最重要的是,我使用 :-

  • Windows Phone 8.0 开发需要 Windows 8.1 (x64) 或更高版本
  • Windows Phone 8.1 开发需要 Windows 8.1 (x86) 或更高版本
  • 对于 Windows Phone 模拟器,Windows 8.1 (x64) Professional版本或更高版本,以及支持客户端 Hyper-V 和二级地址转换 (SLAT)

但是从 指出,Visual Studio 项目模板的 RequiredPlatformVersion 元素正在过滤模板.但是,我尝试将 Blank Windows Phone 项目模板元素的值更改为文档中指定的 8 以及其他一些小于 6.3.0 的值,但仍然无法显示模板.

然后我尝试安装一个名为 Windows Phone 模板包 然后在我的添加新项目窗口中添加两个窗口手机项目模板,如下所示.

我使用该模板创建了一个空项目,令人惊讶的是我能够打开 windows phone 8.1 项目,如下图所示.

这让我想到应该可以开发 Windows Phone 8.1 应用程序但不能模拟它,但我现在对如何解决它没有想法.我什至尝试查看 denv.exe.config 文件来试试运气,但那里也没有任何有趣的东西.

是否有人在类似的 PC 环境中成功构建了 Windows Phone 8.1 应用程序?一种解决方法就足够了.

解决方案

很抱歉这么说,但 Windows 8.1 是开发的必要条件,因为通常模拟器在初始化时会尝试将操作系统加载到设备中,如基本主题等选项.
1) 您可以尝试将您的 Windows 手机连接到您的 PC 并选择部署到设备.(虽然它可能会起作用并且您将能够进行调试,但是当您尝试创建要上传到 Windows 商店的发布构建包时仍然会遇到问题.此外,即使修复程序可能会在短时间内起作用,但对于 Windows 10 大约要发布,您将不得不等待修复程序为此开发应用程序.)
2) 您可以尝试在VMWARE 中安装windows 8.1 并进行部署.

This is going to be quite a long question but please bear with me till the end. Before going into the details, below are my PC environments:

  • Windows 7 Professional x64
  • Visual Studio Community 2013 Update 4

On top of that, I checked my PC's processor does support virtualization using Intel® Processor Identification Utility.

I also installed all the required SKD 8.1 components required to develop Windows phone 8.1 apps as shown in the picture below.


Now I clearly understands from the visual studio website requirements:-

  • Windows Phone 8.0 development requires Windows 8.1 (x64) or higher
  • Windows Phone 8.1 development requires Windows 8.1 (x86) or higher
  • For the Windows Phone emulators, Windows 8.1 (x64) Professionaledition or higher, and a processor that supports Client Hyper-V andSecond Level Address Translation (SLAT)

But from this SO Q&A it seems like developing windows 8.1 phone apps is still possible. However when I try to open an existing windows phone 8.1 project I got the error as shown in the picture below:

On top of that, in my Add New Project window there are no Windows Store Apps templates showing up.

I later found out from this msdn documentation that the RequiredPlatformVersion Element of the Visual Studio project template is filtering out the templates. However I tried to change the Blank Windows Phone project template element's value to 8 as specified in the documentation and also a few others value smaller than 6.3.0 but still fail to show the template.

Then I tried to install an extension called Windows Phone Template Pack which then adds two window phone project templates in my Add New Project window as shown below.

I created an empty project using that template and surprisingly I am able to open the windows phone 8.1 project as shown in the picture below.

That got me thinking that it should be possible to develop windows phone 8.1 apps but not emulating it but I am out of ideas on how to work around it now. I even tried looking at the denv.exe.config file to try my luck but there's nothing of interest there either.

Is there anyone that successfully build a Windows Phone 8.1 apps in an similar PC environment? A workaround will be sufficient.

解决方案

Sorry to say this but Windows 8.1 is a requirement for developing as usually emulators on being initialized tries to load the OS into the device like the basic theme etc options.
1) You can try to connect your Windows phone to your PC and select Deploy to Device. (Though it might work and you will be able to debug yet still you would face a problem when you try to create a release build package to be uploaded on windows store. Also even though the fixes might work for short period but with Windows 10 about to be released you would be stuck with waiting for a fix to develop apps for that.)
2) You can try installing windows 8.1 inside VMWARE and deploy it.

这篇关于在没有模拟器的 Window 7 64 位上在 Visual Studio 2013 中开发 Window Store 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-07 01:19