关于构建第一个 Hololens 应用程序的 DirectoryNotFoundException

DirectoryNotFoundException on building first Hololens App

我是新手,尝试完成 100 个教程。

我在使用 unity 构建时不断收到此错误:

DirectoryNotFoundException: Could not find a part of the path "C:\Program Files (x86)\Windows Kits\Platforms\UAP.0.14393.0\Platform.xml"

查找路径,10中没有"Platform"目录(可能是SDK从10.0.10586改成10.0.14393的缘故)

我已经检查过类似主题的答案,例如 this

相比之下,我已经设置好了一切:

有什么线索吗?

这是安装错误的结果。

几个月前,当我想要进行简单的 Windows 10 构建测试时,我遇到了同样的问题。这就是对我有用的顺序。

1.卸载Visual Studio

2.重启电脑

3.安装Visual Studio

不要尝试在安装过程中更改默认安装目录。

确保通用Windows应用程序开发工具下的所有内容都被选中。一个例外是前缀为 "Windows 8".

的任何内容

4。再次重新启动计算机以确保后台没有 Visual Studio 服务 运行。

5。从 here 安装 Windows 10 SDK。

在安装 Windows 10 SDK 时,如果您收到一条消息说 SDK 已经安装并且是最新的,那么您就完成了。否则继续。

完成后,检查 C:\Program Files (x86)\Windows Kits\Platforms 是否可用。

应该是这样的: