This Unity project is a reproducible project about the issue where "Deterministic Compilation" is disabled when Roslyn Analyzer is in the project.
The issue occurred in Unity 2020.3 and below, and has been fixed in Unity 2020.1.
AsmParent
AsmChild
(Assembly Definition References:AsmParent
)AsmGrandchild
(Assembly Definition References:AsmChild
)
DeterministicCompilationTest
rewrites a private method in the source code in AsmChild
.
If "Deterministic Compilation" is enabled, only AsmChild
will be recompiled.
- Failed run on Unity 2020.3.26f1
- Passed run on Unity 2021.1.0f1
See workflow log
- Failed run on Unity 2020.3.26f1
- Passed run on Unity 2021.1.0f1
See workflow log
- Passed run on Unity 2020.3.26f1
- Passed run on Unity 2021.1.0f1
See Workflow log