【问题标题】:Wrong Microsoft.VCLibs version inclued in hololens buildhololens 构建中包含错误的 Microsoft.VCLibs 版本
【发布时间】:2018-07-25 21:53:16
【问题描述】:

我正在使用 Unity 构建一个简单的 hololens 应用。

我只是使用MixedRealityToolkit的构建窗口

我已经这样做了很多次,没有问题。但是,经过大量更新后,应用程序的安装失败

现在我已将 Hololens 更新到最新版本 17134.165.x86fre.rs4(2018 年 4 月 10 日发布)。 同时我更新了 Unity、Visual Studio 2017 和 Windows 10 SDK。 windows 10 SDK 为 10.0.171340.0

一切正常,App 包的创建没有任何错误。

问题

当我尝试在我的 hololens 上安装应用程序时,我收到以下错误

Windows cannot install package [x] because this package depends on a framework that could not be found. Provide the framework "Microsoft.VCLibs.140.00.Debug" published by "CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US", with neutral or x86 processor architecture and minimum version 14.0.26428.1, along with this package to install. The frameworks with name "Microsoft.VCLibs.140.00.Debug" currently installed are: {Microsoft.VCLibs.140.00.Debug_14.0.25830.2_x86__8wekyb3d8bbwe}(Package failed updates, dependency or conflict validation.)

问题似乎是使用了错误的 Microsoft.VCLibs.140.00.Debug 依赖项。它需要14.0.26428.1,但正在使用14.0.25830.2

到目前为止我发现了什么

我可以看到作为包依赖项包含的依赖项 VCLIBS 文件似乎是一个较旧的文件(使用以前的 SDK 或 Visual Studio 版本安装的东西)但是我不知道在哪里可以找到更新的版本。

我已经尝试过 Unity 2018 和 2017,但 Unity 似乎不是问题

【问题讨论】:

    标签: c# visual-studio unity3d hololens


    【解决方案1】:

    快速修复:将您的构建配置从 debug 更改为 release 应该可以让您在 hololens 上安装应用程序。

    我在此处提供了更多详细信息:https://stackoverflow.com/a/51555857/6357154,但我没有足够的声誉来发表评论。

    【讨论】:

    • 谢谢,但是这不起作用,然后它只是.net core的版本又出现了一个问题。
    【解决方案2】:

    所以我想出了如何解决这个问题。

    问题似乎是我必须从 Visual Studio 中运行该应用程序。 当我这样做时,它突然意识到依赖关系已经过时,并自动设法更新它们。

    因此,我应该使用File -> Buld Settings -> Build 创建解决方案,而不是从Mixed Reality Toolkit -> Build Window 构建。然后我应该在 Visual Studio 中打开解决方案。将平台设置为 x86,选择在设备上运行,最后点击播放。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-09-27
      • 2015-11-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-02-18
      相关资源
      最近更新 更多