我正在按照这个tutorial为Hololens (第一代)构建一个示例应用程序。在本教程的第1章("Holo“World)中,在为Hololens Emulator构建应用程序时,我在成功编译后收到以下错误:
2>------ Build started: Project: Origami, Configuration: Release Win32 ------
2>C:\...\HolographicAcademy-Holograms-101\Origami\App\Origami\Unity Data.vcxitems(197,9): error MSB3030: Could not copy the file "C:\...\HolographicAcademy-Holograms-101\Origami\App\Origami\Plugins\x86\HolographicAppRemoting.dll" because it was not found.
2>Done building project "Origami.vcxproj" -- FAILED.
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========我还从here导入了MRTK包,并在场景中对其进行了配置,但我仍然无法构建应用程序。
以下是我对Unity 2019.2.0f1和Visual Studio 2019的设置,


发布于 2020-04-28 15:13:18
只需在构建之前禁用XR设置中支持的WSA全息渲染即可。记得重新启用它,以便与全息远程处理应用程序一起使用。
发布于 2019-08-27 07:06:35
我在Unity 2019.2.0f1上使用MRTK v2.0.0时也遇到了这个问题。我可以通过打开UnityData.vcxitems并手动删除任何提到HolographicAppRemoting.dll、UnityRemotingWMR.dll和PerceptionDevice.dll的内容来解决这个问题,然后它就可以工作了。
令人恼火的是,每次你在Unity中构建时,这些条目又被放回了.vcxitems中:(仍然没有想出解决这个问题的方法。这似乎与MRTK有关,或者是我为了让MRTK正常工作而不得不添加的一些包,因为我没有MRTK的其他一些项目没有遇到这个问题。
编辑:我想我弄明白了……
为了通过Unity启用全息遥控,编辑器强制您启用虚拟现实支持,并在从Unity构建VS解决方案时自动将PerceptionDevice.dll、HolographicAppRemoting.dll和UnityRemotingWMR.dll添加到UnityData.vcxitems中
禁用虚拟现实支持从UnityData.vcxitems中删除了这些条目,现在似乎对我有效了!
发布于 2019-08-20 22:06:39
尝试在x64文件夹中查找插件,如果可用,则将文件从x64复制到x86
https://stackoverflow.com/questions/57537018
复制相似问题