(Case 1096419) [asmdef] Failed to reference Assembly-CSharp.dll

The weird thing is everything is working properly in Unity beta 7 until I reopen project again in Unity beta 7. I use Create Editmode Test Assembly Folder from Test Runner to create a folder with assembly definition file. But it seems like it cannot reference Assembly-CSharp.dll properly and failed to get Heart class.
Note: It’s the same project for Case 1096413 but with Unity beta 7.

Open the project u will see “error CS0246: The type or namespace name ‘Heart’ could not be found (are you missing a using directive or an assembly reference?)”. In this beta 8, it gives extra new error “GetAnalyzersFromCompilation threw an exception: System.ArgumentNullException: Value cannot be null.”

Assets\Tests\HeartTests.cs(15,22): error CS0246: The type or namespace name ‘Heart’ could not be found (are you missing a using directive or an assembly reference?)

Assets\Tests\HeartTests.cs(9,13): error CS0246: The type or namespace name ‘Heart’ could not be found (are you missing a using directive or an assembly reference?)

(0,0): [10/31/2018 01:40:00.039 PM] GetAnalyzersFromCompilation threw an exception: System.ArgumentNullException: Value cannot be null.
Parameter name: source
at System.Linq.Enumerable.Where[TSource] (System.Collections.Generic.IEnumerable1[T] source, System.Func2[T,TResult] predicate) [0x0000d] in <1b13ba6391c74847bbc3eddc86df7eee>:0
at UnityEditor.Compilation.CodeAnalysisManager.GetAnalyzersFromCompilation (System.String assemblyFilename, System.String[ ] unityCompilerArguments) [0x0003f] in :0
System.Threading.ThreadHelper:ThreadStart()

asmdefs should not be able to reference Assembly-CSharp.dll (that’s because Assembly-CSharp.dll implicitly references everything, and cyclic references are disallowed). if it did, it’s a bug

the internal ArgumentNullException may be another bug or related