Search Issue Tracker
Active
Votes
0
Found in
2020.2.0a16
2022.3
Issue ID
1261999
Regression
No
Compile errors in DLLs are not treated as compile errors
1 I created 2 precompiled DLLs through VisualStudio: DLL2 references DLL1
2 I drag and dropped those DLLs to Unity project
3 I created a script that uses classes/methods from DLL2 and added that script to a GameObject in the scene
4 Press Play - everything works
5 Stop Play mode
6 Delete DLL1
7 Now there are errors:
"Assembly 'Library/ScriptAssemblies/Assembly-CSharp.dll' will not be loaded due to errors:
Reference has errors 'Dll2'."
and
"Assembly 'Assets/Dll2.dll' will not be loaded due to errors:
Unable to resolve reference 'Dll1'. Is the assembly missing or incompatible with the current platform?
Reference validation can be disabled in the Plugin Inspector."
Actual Results: You can "Clear" those errors from the Console and they are gone, you can press Play and it enters Play mode
Expected Results: in my opinion those are kind of "compile errors" and they should be treated in the same way ?
How can we reproduce it using the example you attached
1 Open attached project (New Unity Project_dll_a16.zip)
2 Go to Project Browser and delete DllTest.dll
3 Press Play
Actual Results: there are 2 errors appear but you can "Clear" those errors from the Console and they are gone, you can enter Play mode
Expected Results: in my opinion those are kind of "compile errors" and they should be treated in the same way ? - meaning Play mode shouldn't be allowed and errors can't be "Clear"-ed from the Console
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Rigidbody2D.Slide API does not have the needed configuration when creating a 2D Top-Down character controller
- Opening reference for "Playables"component redirects to a missing page
- Sprite Renderer image is changed when switching Mask Interaction and changing Sprite to a shared Sprite
- An unsigned integer is not compared with an integer correctly in player when using IL2CPP backend
- Graphical artifacts are being rendered in Scenes that are loaded during run-time when GPU Resident Drawer is turned on
Add comment