Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/283.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/visual-studio/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# hololens版本中包含错误的Microsoft.VCLibs版本_C#_Visual Studio_Unity3d_Hololens - Fatal编程技术网

C# hololens版本中包含错误的Microsoft.VCLibs版本

C# hololens版本中包含错误的Microsoft.VCLibs版本,c#,visual-studio,unity3d,hololens,C#,Visual Studio,Unity3d,Hololens,我正在使用Unity构建一个简单的全息镜头应用程序 我只是从中使用构建窗口 我已经做了很多次了,没有任何问题。然而,经过一系列更新后,应用程序的安装失败 现在,我已将Hololens更新为最新版本17134.165.x86fre.rs4(2018年4月10日发布)。 同时,我更新了Unity、Visual Studio 2017和Windows 10 SDK。Windows10SDK是10.0.171340.0 一切正常,应用程序包创建时没有任何错误 问题 当我尝试在hololens上安装应用程

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

我只是从中使用构建窗口

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

现在,我已将Hololens更新为最新版本17134.165.x86fre.rs4(2018年4月10日发布)。 同时,我更新了Unity、Visual Studio 2017和Windows 10 SDK。Windows10SDK是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似乎不是问题所在

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


我在这里提供了更多的细节:,但我没有足够的声誉来发表评论。

所以我找到了解决方法

问题似乎是我必须在VisualStudio中运行应用程序。 当我这么做的时候,它突然意识到依赖项已经过时,并自动更新它们


因此,我应该使用
文件->Buld设置->构建
创建解决方案,而不是从
混合现实工具包->构建窗口构建。然后我应该在VisualStudio中打开解决方案。将平台设置为x86,选择在设备上运行,最后点击play。

谢谢,但这不起作用,然后它在.net core版本中遇到了另一个问题。