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
- Uninitialized variable warning appears in the Inspector of a custom shader when the variable is initialized
- "Failed creating toolbar element from ID..." error is thrown when resetting the Scene view Overlay layout while an Asset Transformer Toolbox overlay is active
- Entity ID for Font Assets is serialized twice which throws an error when using Debug Inspector
- Play Mode can be entered when disabling Adaptive Performance and pressing either the Play Mode button or the keyboard shortcut to enter Play Mode before recompilation leading to errors and warnings thrown
- Parent ListView element also becomes selected when inner ListView element is selected
Add comment