构建项目时发生错误 - 错误:CS0006“... \ Assembly-CSharp-firstpass.dll”找不到

我正在为Hololens建立一个简单的项目。

独特的场景与简单的立方体。

我遵循这个教程做出来:

- > https://developer.microsoft.com/en-us/windows/mixed-reality/holograms_100 
- > https://developer.microsoft.com/en-us/windows/mixed-reality/using_visual_studio#hololens 
- > http://pterneas.com/2016/04/04/getting-started-hololens-unity3d/

但是,当我构建时会显示这个错误: 

我正在使用最新版本的Unity和Visual Studio:

Unity:v2017.1.0f3 
Visual Studio:v15.3.2

有趣的是,我有一个v15.2版本(26430.16) Visual Studio 的朋友,他通常会构建任何Hololens应用程序。

我已经重新安装了我的Visual Studio和Unity(最新版本),但错误仍在继续。

我发现这个教程 - > http://www.imaginativeuniversal.com/blog/2017/06/24/hololens-fix-visual-studio-2017-build-error/但不起作用。

我的输出:

Restoring NuGet packages ...
To prevent NuGet from restoring packages during compilation, open the Visual Studio Options dialog box, click on the Package Manager node and uncheck 'Allow NuGet to download missing packages during compilation'.
1> ------ Compilation started: Project: Assembly-CSharp-firstpass, Configuration: x86 Release ------
1> Running SerializationWeaver ...
1> System.Collections.Generic.KeyNotFoundException: The supplied key was not present in the dictionary.
1> at System.ThrowHelper.ThrowKeyNotFoundException ()
1> at System.Collections.Generic.Dictionary`2.get_Item (TKey key)
1> in UnityEditor.Scripting.Compilers.NuGetPackageResolver.Resolve ()
1> in Unity.NuGetAssemblyResolver..ctor (String projectLockFile)
1> in usw.Weaver.ReaderParameters (String assemblyPath, ConversionOptions options)
1> in usw.Weaver.Weave ()
1> in usw.Program.RunProgram (ConversionOptions options)
1> in usw.Program.Main (String [] args)
C: \ Users \ luq.santana \ Documents \ _Unity3D \ BuildLimpa \ App \ GeneratedProjects \ UWP \ Assembly-CSharp-firstpass \ Assembly-CSharp-firstpass.csproj (196,5): error MSB3073: : \ Users \ luiz.santana \ Documents \ _Unity3D \ BuildLimpa \ App \ Unity \ Tools \ SerializationWeaver \ SerializationWeaver.exe "" C: \ Users \ luiz.santana \ Documents \ _Unity3D \ BuildLimpa \ App \ GeneratedProjects \ UWP \ Assembly- CSharp-firstpass \ bin \ x86 \ Release \ Unprocessed \ Assembly-CSharp-firstpass.dll "-pdb" -verbose "-web-engine = C: \ Users \ luiz.santana \ Documents \ _Unity3D \ BuildLimpa \ App \ BuildLimpa \ Unprocessed \ UnityEngine.dll "" C: \ Users \ luiz.santana \ Documents \ _Unity3D \ BuildLimpa \ app \ GeneratedProjects \ UWP \ Assembly-CSharp-FirstPass \ obj \ x86 \ Release \ x86 \ Release "" -lock = C: \ Users \ luiz.santana \ Documents \ _Unity3D \ BuildLimpa \ app \ GeneratedProjects \ UWP \ Assembly-CSharp-FirstPass \ project.lock.json "" @C: \ Users \ luiz.santana \ Documents \ _Unity3D \ BuildLimpa \ App \ GeneratedProjects \ UWP \ Assembly-CSharp-firstpass \ SerializationWeaverArgs.txt "-additionalAssemblyP ATH = C: \ Users \ luiz.santana \ Documents \ _Unity3D \ BuildLimpa \ app \ BuildLimpa \ Unprocessed "" -unity-networking = C: \ Users \ luiz.santana \ Documents \ _Unity3D \ BuildLimpa \ app \ BuildLimpa \ Unprocessed \ UnityEngine.Networking.dll "was terminated with code 1.
2> ------ Compilation started: Project: Assembly-CSharp, Configuration: Release x86 ------
2> CSC: error CS0006: C: \ Users \ luiz.santana \ Documents \ _Unity3D \ BuildLimpa \ App \ GeneratedProjects \ UWP \ Assembly-CSharp-firstpass \ bin \ x86 \ Release-Assembly-CSharp-firstpass source file. Dll "can not be found
3> ------ Compilation started: Project: BuildLimpa, Configuration: Release x86 ------
3> CSC: error CS0006: C: \ Users \ luiz.santana \ Documents \ _Unity3D \ BuildLimpa \ App \ GeneratedProjects \ UWP \ Assembly-CSharp-firstpass \ bin \ x86 \ Release-Assembly-CSharp-firstpass source file. Dll "can not be found
CSC: Error CS0006: C: \ Users \ Luiz.santana \ Documents \ _Unity3D \ BuildLimpa \ App \ GeneratedProjects \ UWP \ Assembly-CSharp \ bin \ x86 \ Release \ Assembly-CSharp.dll "source file can not To be found
========== Compile: 0 successfully, 3 failed, 0 refreshed, 0 ignored ==========
========== Deployment: 0 Successfully, 0 Failed, 0 Ignored ==========

必须发生什么?我如何解决它?


解决了

我只是改变了project.lock.json文件中的版本。它与Version=v10.0.10240´. I just ´find/replace所有,并取代Version=v10.0和工作!

我在这个链接中找到了一个解决方案:https : //forum.unity3d.com/threads/net-scripting-backend-and-visual-studio-2017-3-incompatibility.487833/

原文地址https://stackoverflow.com/questions/45941755/error-while-building-project-hololens-error-cs0006-assembly-csharp-first

构建项目时发生错误 - 错误:CS0006“... \ Assembly-CSharp-firstpass.dll”找不到相关推荐

  1. 解决了.Net 2003“试图调试项目时发生错误”的问题

    经过是这样的.我从装了机器,刚上网下载一个RAR就中病毒了,是"网址之家" 病毒,篡改首页.后来看了一个帖子,说把iexplorer.exe该命,然后刷新几次,系统会自动建立一个新 ...

  2. 运行windows live writer时发生“意外错误”

    安装完成后按照介绍的配置方法,提示 "尝试检测日志设置时发生意外错误 QI for IEnumVARIANT failed on the unmanaged server",goo ...

  3. android获取错误原因,从http读取数据时发生OutOfMemory错误获取请求android

    我正在做一个http获取请求.我需要接收大量数据,但在读取数据时出现OutOfMemory异常.从http读取数据时发生OutOfMemory错误获取请求android 我的代码: public st ...

  4. 腾讯QQ2010安装时提示“C:\windows\Installer\QQ2010.msi时发生网络错误”的解决方 ......

    腾讯在今天推出了QQ2010sp2.2,下来安装,遇到一个问题,提示"C:\windows\Installer\QQ2010.msi时发生网络错误" 而后安装不能继续进行 注:此问 ...

  5. vscode 经常弹出:尝试在目标目录创建文件时发生一个错误 重试 跳过这个文件 关闭安装程序

    系列文章目录 文章目录 系列文章目录 前言 一.问题定位? 二.解决办法 1.找到vsCode的安装路径 2.鼠标右键选中Microsoft VS Code文件夹->属性 3. 点击" ...

  6. 通过运营界面上传图片失败,浏览器提示上传文件时发生HTTP错误(错误代码:500)

    通过运营界面上传图片失败,浏览器提示上传文件时发生HTTP错误(错误代码:500) ERROR exception 135 Internal Server Error: /ckeditor/uploa ...

  7. ae渲染出现错误是什么问题_After Effects错误:写入文件.....时发生渲染错误.输出模块失败.文件可能已损坏。(-1610153464)...

    我来回答一下,你在电脑里安装了其他下载的aex文件格式的插件,你只要把你这些插件删除掉,问题就可以解决,(安装插件不正确,或者有相同的插件也出现提示框)其实,这个提示不重要,你正常开启AE以后,正常使 ...

  8. 服务器复制文件出现io错误,win7系统复制文件时发生IO错误的解决方法

    很多小伙伴都遇到过win7系统复制文件时发生IO错误的困惑吧,一些朋友看过网上零散的win7系统复制文件时发生IO错误的处理方法,并没有完完全全明白win7系统复制文件时发生IO错误是如何解决的,今天 ...

  9. Visual Studio2022 运行代码时“发生生成错误,是否继续并运行上次的成功生成”

    VS2022运行代码时"发生生成错误,是否继续并运行上次的成功生成" 点击是出现 "无法启动程序系统找不到指定文件" 这时,注意看下面的输出框:'scanf': ...

最新文章

  1. MFC程序框架的剖析
  2. 关于机器学习的领悟与反思
  3. 【5月19日】 开源论文代码分享 分割、姿势预测,目标检测
  4. IOS 粒子发射器,雪花落下、创建火焰、河流、蒸汽的动画效果源代码
  5. 链队列的建立、判空、入队、出队、求长、访头、清空和销毁
  6. Python str / bytes / unicode 区别详解 - Python零基础入门教程
  7. iOS定位服务与地图开发(3)---地理信息编码查询
  8. Linux系统编程29:进程信号之什么是信号及signal函数
  9. python3数据类型_python3中到底有几类数据类型?
  10. expect学习笔记及实例详解【转】
  11. Console.log对象显示
  12. vue + element-ui tab切换
  13. 创建自定义主机头的网站集
  14. Unity中Camera的Clear flags,Culling Mask,Depth参数
  15. RFIC4463_F2C
  16. CS231n-assignment1详解
  17. Android 9.0的One UI系统,三星S9/S9+更新One UI 安卓9.0已正式推送
  18. 购买重疾险是不是都要先去体检?千万不要!
  19. JS + HTML + CSS 实现Todolist
  20. IOS微信6.7.4输入框失去焦点,软键盘关闭后,被撑起的页面无法回退到原来正常的位置

热门文章

  1. python提取高频词_seo与python大数据结合给文本分词并提取高频词
  2. vue给组件传html,如何将 html 模板作为道具传递给 Vue 组件
  3. android内存置换,课内资源 - 基于Android实现的页面置换模拟
  4. 网页数据分页显示php,PHP网页设计例子:用PHP3完成MySQL数据的分页显示
  5. linux-如何限制普通用户的磁盘使用空间-磁盘配额quota,Linux-如何限制普通用户的磁盘使用空间-磁盘配额quota...
  6. 微软高性能计算服务器pdf,微软高性能计算HPCserver2008技术概览.pdf
  7. 安卓案例:View动画 - 弹球碰壁
  8. 大数据学习笔记47:Flume - 下载、安装与配置
  9. There is 和 There are的使用_28
  10. 2017.10.7 phi的反函数 失败总结