【问题标题】:Windows Phone 8 app doesn't run on emulator when is under git control受 git 控制时,Windows Phone 8 应用程序无法在模拟器上运行
【发布时间】:2014-02-03 17:49:22
【问题描述】:

我在使用 Windows Phone 8 模拟器时遇到了问题。当我的项目在 git 控制下时,我无法在模拟器上运行它。当我在 Visual Studio 2013 中运行 Emulator WVGA 512 MB 后,模拟器打开但 VS 显示错误:

There were deployment errors. Continue?

在输出窗口中:

1>------ Deploy started: Project: DataBoundApp1, Configuration: Debug Any CPU ------
1>Deploying C:\Users\Martin\Source\Repos\IC%202014\DataBoundApp1\DataBoundApp1\Bin\Debug\DataBoundApp1_Debug_AnyCPU.xap...
1>Connecting to Emulator WVGA 512MB...
1>Installing the application...
1>Deployment of application to device failed.
1>The parameter is incorrect.
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========

当我将解决方案文件夹移到 git 存储库之外时,它可以正常工作,没有任何错误。它是从标准 VS 模板创建的解决方案。我没有对文件进行任何更改。

这种奇怪行为的原因是什么?我该如何解决?

提前感谢您的帮助。

【问题讨论】:

    标签: .net git visual-studio windows-phone-8 visual-studio-2013


    【解决方案1】:

    每当我遇到像您遇到的那种奇怪的情况时,我总是先尝试“清理并构建”。它解决了很多问题。

    【讨论】:

    • 我已经尝试清理和构建,但它不能解决问题。重启 VS 和 Windows 也没有任何改变。
    【解决方案2】:

    我解决了这个问题。这种行为的主要原因是文件夹的名称。我将名称从IC%202014 更改为IC 2014,之后它运行正常。模拟器可能禁止百分号登录路径。

    【讨论】:

      【解决方案3】:

      我遇到了同样的问题,安装 Windows Phone SDK 8.0 Update 3 并选择“Emulator 8.0 Update 3 WVGA 512MB”确实有效。不幸的是,非更新 3 版本仍然无法使用。

      【讨论】:

        【解决方案4】:

        我知道 OP 在使用 Emulator 时遇到了问题,但我最近在真机上遇到了这个问题,所以这可能对某些人也有用。

        我试图从同一设备上的两个 Visual Studio (2012+2013) 实例部署两个应用程序。 VS2013的一个虽然没有问题,VS2012的另一个却抛出了"Parameter is incorrect"的错误。

        重建项目并没有帮助,但事实证明,解决此问题的简单方法就是拔掉手机电源,然后再次部署第二个应用程序。

        编辑:

        另一方面,如果我先运行 2012 项目,然后尝试运行 2013 项目,Visual Studio 2013 控制台会显示:

        >The application is already installed on the device. Checking if an incremental deployment is possible...
        >Doing incremental deployment...
        >Updating information related to modified files...
        >Deployment of C:\projects\Win8\MyApp\bin\ARM\MyApp-Debug\MyApp-Debug_ARM.xap succeeded.
        

        然后显示一个消息框,其中包含一个更好理解的错误:

        同样,拔掉手机电源并执行另一次部署(运行)足以绕过此问题。

        【讨论】:

          【解决方案5】:

          对我来说,问题是.appx 文件位于共享位置。一旦我将它复制到我的计算机上,错误就消失了。

          【讨论】:

            猜你喜欢
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            相关资源
            最近更新 更多