Hololens Apps将不再构建-引用缺少元数据文件并且找不到c-Sharp.firstpass [英] Hololens Apps Will No Longer Build - Cites Metadata file missing and c-Sharp.firstpass not found

查看:97
本文介绍了Hololens Apps将不再构建-引用缺少元数据文件并且找不到c-Sharp.firstpass的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已按照Microsoft在其 Microsoft Holographic中的多个项目下列出的确切步骤进行操作-学院教程.我完成了所有这些工作,并且从创建到导出和测试,所有这些工作都很好.这是使用Unity3D/C#编译成的Visual Studio解决方案(sln)文件.

I have followed the exact steps Microsoft lists under multiple projects within their Microsoft Holographic - Academy tutorials. I completed them all, and all of them worked just fine from creation to export and testing. This is using Unity3D / C# which gets compiled into a Visual Studio Solution (sln) file.

完成这些操作后,我继续构建自己的应用程序-该应用程序也很好.没问题!

After completing those, I went on to build my own app - which built just fine as well. No problem!

现在,当我尝试构建时-我收到一个奇怪的错误,即找不到c-Sharp.firstpass文件(根据我的理解,该文件是导出的/交叉编译的dll).

Now when I try to build - I get a strange error that the c-Sharp.firstpass file (the exported/cross-compiled dll from what I understand) can not be found.

现在,即使成功构建的项目也不会再构建.

Now even the projects that built successfully won't build any more.

我将在下面粘贴确切的错误.

I will paste the exact error below.

我尝试过的事情:

  • 创建一个新项目并将所有先前的资产粘贴到其中-然后重新构建.
  • 清理VS项目
  • 重新启动计算机
  • 重新启动Unity3D
  • 卸载并重新安装Visual Studio(推荐版本)
  • 卸载并重新安装Unity3D(推荐版本)
  • 再次按照教程进行操作
  • 搜索StackOverflow并尝试其问题与我的问题遥遥相似的每个解决方案
  • 询问Unity答案(2天前)
  • 将项目文件构建到不同的驱动器,文件夹,位置等.
  • 不放弃
  • Creating a new project and pasting all of the previous assets into it - then rebuilding.
  • Cleaning the VS project
  • Restarting my computer
  • Restarting Unity3D
  • Uninstalling and reinstalling Visual Studio (recommended version)
  • Uninstalling and reinstalling Unity3D (recommended version)
  • Following the tutorials step-by-step again
  • Searching StackOverflow and attempting every solution whose question remotely resembled my issue
  • Asking on Unity Answers (2 days ago)
  • Building the project file to different drives, folders, locations, etc.
  • To not give up

似乎存在引用问题-因此我也未引用/引用提到的文件.

There seems to be a referencing issue - so I have also unreferenced/referenced the mentioned file.

感谢所有帮助.需要明确的是,这是针对Microsoft Hololens开发的Windows 10 Universal应用程序.但是,在这种情况下,设备本身似乎与构建过程几乎没有关系,除了针对它之外.

Thanks for any and all help. To be clear, this is a Windows 10 Universal app being developed for the Microsoft Hololens. However, the device itself seems to have little to nothing to do with the build process in this case, other than targeting it.

最好

Addyarb

错误:

命令"D:\ Development \ Hololens Builds \ PlanetApp \ Unity \ Tools \ SerializationWeaver \ SerializationWeaver.exe""D:\ Development \ Hololens Projects \ Planetarium \ UWP \ Assembly-CSharp-firstpass \ bin \ x86 \ Release \ Unprocessed \ Assembly-CSharp-firstpass.dll"-pdb -verbose -unity-engine =" D:\ Development \ Hololens Builds \ PlanetApp \ Planetarium \ Unprocessed \ UnityEngine.dll"-unity-networking = D:\ Development \ Hololens Builds \ PlanetApp \ Planetarium \ Unprocessed \ UnityEngine.Networking.dll"D:\ Development \ Hololens Projects \ Planetarium \ UWP \ Assembly-CSharp-firstpass \ obj \ x86 \ Release \ x86 \ Release"已退出代码1.Assembly -CSharp-firstpass D:\ Development \ Hololens Projects \ Planetarium \ UWP \ Assembly-CSharp-firstpass \ Assembly-CSharp-firstpass.csproj 180

The command ""D:\Development\Hololens Builds\PlanetApp\Unity\Tools\SerializationWeaver\SerializationWeaver.exe" "D:\Development\Hololens Projects\Planetarium\UWP\Assembly-CSharp-firstpass\bin\x86\Release\Unprocessed\Assembly-CSharp-firstpass.dll" -pdb -verbose -unity-engine="D:\Development\Hololens Builds\PlanetApp\Planetarium\Unprocessed\UnityEngine.dll" -unity-networking=D:\Development\Hololens Builds\PlanetApp\Planetarium\Unprocessed\UnityEngine.Networking.dll "D:\Development\Hololens Projects\Planetarium\UWP\Assembly-CSharp-firstpass\obj\x86\Release\x86\Release"" exited with code 1. Assembly-CSharp-firstpass D:\Development\Hololens Projects\Planetarium\UWP\Assembly-CSharp-firstpass\Assembly-CSharp-firstpass.csproj 180

找不到元数据文件'D:\ Development \ Hololens Projects \ Planetarium \ UWP \ Assembly-CSharp-firstpass \ bin \ x86 \ Release \ Assembly-CSharp-firstpass.dll' Hololens Projects \ Planetarium \ UWP \ Assembly-CSharp \ CSC

Metadata file 'D:\Development\Hololens Projects\Planetarium\UWP\Assembly-CSharp-firstpass\bin\x86\Release\Assembly-CSharp-firstpass.dll' could not be found Assembly-CSharp D:\Development\Hololens Projects\Planetarium\UWP\Assembly-CSharp\CSC

找不到元数据文件D:\ Development \ Hololens Projects \ Planetarium \ UWP \ Assembly-CSharp \ bin \ x86 \ Release \ Assembly-CSharp.dll'天文馆D:\ Development \ Hololens Builds \ PlanetApp \ Planetarium \ CSC

Metadata file 'D:\Development\Hololens Projects\Planetarium\UWP\Assembly-CSharp\bin\x86\Release\Assembly-CSharp.dll' could not be found Planetarium D:\Development\Hololens Builds\PlanetApp\Planetarium\CSC

推荐答案

-更新---

我以前的答案仍然适用,因此我不会将其删除.但是要解决此特定问题,请确保将生成的应用程序放置在不包含任何空格的文件夹结构中. SerializatioWeaver.exe中似乎存在一个错误,该错误无法正确读取路径,并且无法找到必要的Unity扩展.

My previous answer still applies so I won't remove it. But for fixing this specific issue, make sure you place your generated app in a folder structure that does not contain any spaces. There seems to be a bug in SerializatioWeaver.exe that does not properly read the path and won't be able to find necessary Unity extensions.

确保使用的是为HoloLens构建的正确Unity3D版本. 始终使用HoloLens学院论坛上宣布的兼容最新版本-在撰写本文时,该版本为5.4 Beta 18,您可以下载它

Make sure you are using the correct Unity3D version built for HoloLens. Always use the latest version compatible as announced on the HoloLens academy forums - at the time of writing this, that version is 5.4 Beta 18 and you can download it here

由于常规的Unity版本不同,请始终从HoloLens论坛上提供的链接下载安装程序.您需要为HoloLens构建的特殊Unity3D版本

Always download the installer from the link provided on the HoloLens forum as the regular Unity builds are different. You need the special Unity3D version built for HoloLens

在安装新版本时,请始终将其安装在新位置上.安装Unity后,请始终安装您在我上面链接的同一页面上找到的UWP Runtime(UWP Runtime是专门为每个版本构建的,因此请始终在Unity之后重新下载并安装).在安装UWP Runtime时,请确保为Unity 3D安装文件夹(您刚刚将unity 3D安装到的文件夹)选择了正确的位置.

When installing a new version, always install in a new location than the previous one. After you install Unity, always install the UWP Runtime that you can find on the same page that I linked above (the UWP runtime is built specifically for each version so always re-download and install after Unity). When installing the UWP Runtime, make sure you select the right location for the Unity 3D install folder (the folder you just installed your unity into).

如果一切均已正确安装,则您的构建应重新开始工作.

If everything is installed correctly, your builds should start working again.

这篇关于Hololens Apps将不再构建-引用缺少元数据文件并且找不到c-Sharp.firstpass的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆