Search Issue Tracker
Fixed in 5.4.3
Votes
2
Found in
5.3.1f1
Issue ID
761588
Regression
No
UNetWeaver error: NetworkConnection::hostId is declared in another module and needs to be imported
Steps to reproduce:
1. Download and import attached project. (repro_case_761588-Battle_Jump.zip)
2. Load scene: Menu
3. Inspect error messages in console.
4. Try to build the project to standalone
Expected result: project builds, no errors are visible.
Actual result: project does not build, error messages appear:
UNetWeaver error: Exception :System.ArgumentException: Member 'System.Int32 UnityEngine.Networking.NetworkConnection::hostId' is declared in another module and needs to be imported
at Mono.Cecil.MetadataBuilder.LookupToken (IMetadataTokenProvider provider) [0x00000] in <filename unknown>:0
Failure generating network code.
UnityEditor.Scripting.Serialization.Weaver:WeaveUnetFromEditor(String, String, String, String, Boolean)
And this one after build:
error CS0016: Could not write to file `Temp/Assembly-CSharp.dll', cause: Sharing violation on path C:\Users\Justas\Downloads\repro_case_761588-Battle_Jump\Temp\Assembly-CSharp.dll.mdb
Reproduced on: 5.4.0b19, 5.3.4f1, 5.2.4f1
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Add comment