错误的 Microsoft.VCLibs 版本包含在 hololens 构建中

Wrong Microsoft.VCLibs version inclued in hololens build

我正在使用 Unity 构建一个简单的全息镜头应用程序。

我正在使用来自 MixedRealityToolkit

的构建 window

我已经这样做了很多次,没有问题。然而,经过一系列更新后,应用程序安装失败

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

一切正常,应用程序包创建没有任何错误。

问题

当我尝试在我的 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 似乎不是问题所在

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

我在此处提供了更多详细信息:,但我没有足够的声誉post将此作为评论。

所以我想出了解决这个问题的方法。

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

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