0
点赞
收藏
分享

微信扫一扫

【解决】Copying assembly from ‘Temp/Assembly-CSharp.dll‘ to ‘...../Assembly-CSharp.dll` ....

阎小妍 2022-02-11 阅读 77
unityc#

开发平台:Unity
编程平台:Visual Studio 2017以上
使用语言:C#

问题描述:

原文Copying assembly from ‘Temp/Assembly-CSharp.dll’ to ‘Library/ScriptAssemblies/Assembly-CSharp.dll’ failed. Detailed error: Sharing violation on path
翻译将程序集从“Temp/Assembly-CSharp.dll”复制到“Library/ScriptAssemblies/Assembly-CSharp.dll”失败。 详细错误:在路径上共享冲突

注:此类问题可能是由于频繁操作所导致的。根据实际出现情况在配置低的电脑上出现频率较高。介于更新程序集的过程中无法更新至Library文件下给予以下两种解决方案。


解决方案

一、重启Unity以解决问题(有效)

Temp 临时资源文件夹。Library 当前项目中资源功能的缓存内容(cache)
这两文件夹在项目中不作为主要内容。

二、重载程序集(未确定绝对有效)

Unity 重载程序集的前提为程序内部有发生改变(增删查改)。任意行添加注释//This is a word或修改一处程序表达方式,以强迫Unity对程序及进行重新编译与加载。
(Unity 2019版本以上 Edit / perferences / Expand Tool / Reqenerate project file 理论上可实现重载。但未尝试过。)

举报

相关推荐

0 条评论