Hololens设备生成无法找到Assembly-CSharp-firstpass.dll [英] Hololens device build fails to not finding Assembly-CSharp-firstpass.dll
问题描述
我正在尝试在Visual Studio 2017上为Hololens设备构建Unity应用程序,但出现以下错误:
I'm trying to build Unity application for Hololens device on Visual Studio 2017 and I'm getting the following errors:
Metadata file '...\GeneratedProjects\UWP\Assembly-CSharp-firstpass\bin\x86\Release\Assembly-CSharp-firstpass.dll' could not be found
Metadata file '...\GeneratedProjects\UWP\Assembly-CSharp\bin\x86\Release\Assembly-CSharp.dll'
I'm aware of the similar question here but uninstalling and installing the latest versions of both Unity and VS did not help. Neither did starting a completely new project. I'm using now the latest versions of Unity (2017.1.0f3) and Visual Studio 2017 (15.3.0). I've tried uninstalling both applications. Everything was working fine yesterday but then I downloaded additional components to Visual Studio (ASP.NET) and the Hololens build stopped working. Any idea how I could fix the issue?
我可以在未处理文件夹中的Assembly-CSharp-firstpass.dll查找路径下找到它,甚至尝试将其复制到正确的路径,但没有帮助.我也曾尝试在不勾选Unity C#项目的情况下构建项目,但随后出现了另一个错误.
I can see the Assembly-CSharp-firstpass.dll in Unprocessed folder under the path it's searching for it and even tried to copy it to the correct path but it did not help. I have also tried to build the project without ticking the Unity C# Projects but I get a different error then.
更新
我在Unity论坛上找到了这篇文章,我认为这与我遇到的问题相同:
I found this post on Unity forums and I think it's the same issue I have: https://forum.unity3d.com/threads/net-scripting-backend-and-visual-studio-2017-3-incompatibility.487833/
此问题的解决方法是在GeneratedProjects的project.lock.json文件中手动将"UAP,Version = v10.0.xxx"修改为"UAP,Version = v10.0".
A workaround for this issue is to manually modifiying The "UAP,Version=v10.0.xxx" to "UAP,Version=v10.0" In the project.lock.json files of the GeneratedProjects.
推荐答案
此问题的其他解决方案包括降级到Visual Studio 2015,或使用您提供的链接具有的补丁.
Other solutions to this problem include a downgrade to Visual Studio 2015, or using the patch that the link you provided has.
这篇关于Hololens设备生成无法找到Assembly-CSharp-firstpass.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!