Question by
ROBdk97 · Jul 10, 2018 at 07:47 PM ·
script errorassembly
UNetWeaver error
I updated Unity to 2018.2.0f2 and every Project I open, I get those errors
UNetWeaver error: Exception :System.IO.IOException: Sharing violation on path Temp\Assembly-CSharp.pdb
at System.IO.File.Delete (System.String path) [0x00073] in <f826c2584fc94ec19a48a6576640bdc5>:0
at Unity.UNetWeaver.Weaver.Weave (System.String assName, System.Collections.Generic.IEnumerable`1[T] dependencies, Mono.Cecil.IAssemblyResolver assemblyResolver, System.String unityEngineDLLPath, System.String unityUNetDLLPath, System.String outputDir) [0x002cf] in C:\buildslave\unity\build\Extensions\Networking\Weaver\UNetWeaver.cs:1862
at Unity.UNetWeaver.Weaver.WeaveAssemblies (System.Collections.Generic.IEnumerable`1[T] assemblies, System.Collections.Generic.IEnumerable`1[T] dependencies, Mono.Cecil.IAssemblyResolver assemblyResolver, System.String outputDir, System.String unityEngineDLLPath, System.String unityUNetDLLPath) [0x0004c] in C:\buildslave\unity\build\Extensions\Networking\Weaver\UNetWeaver.cs:1888
UnityEngine.Debug:LogError(Object)
Unity.UNetWeaver.Log:Error(String) (at C:/buildslave/unity/build/Extensions/Networking/Weaver/Program.cs:20)
Unity.UNetWeaver.Weaver:WeaveAssemblies(IEnumerable`1, IEnumerable`1, IAssemblyResolver, String, String, String) (at C:/buildslave/unity/build/Extensions/Networking/Weaver/UNetWeaver.cs:1896)
Unity.UNetWeaver.Program:Process(String, String, String, String[], String[], IAssemblyResolver, Action`1, Action`1) (at C:/buildslave/unity/build/Extensions/Networking/Weaver/Program.cs:34)
UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface:TickCompilationPipeline(EditorScriptCompilationOptions, BuildTargetGroup, BuildTarget)
and
Failure generating network code.
UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface:TickCompilationPipeline(EditorScriptCompilationOptions, BuildTargetGroup, BuildTarget)
What I already did:
Reinstalled Unity and Unity HUB
Reimport all
Deleted Temp (I know the in Error mentioned Temp FOlder is in the Project)
Restarted Pc
Comment
I just started using 2018.2 as well, and I am getting a bunch of UNetWeaver, as well as Failure generating network code. Hopefully, someone might have some info on this!
Answer by jjxtra · Jul 31, 2018 at 03:34 PM
Same error here, happens when importing entities package.