How to reproduce:
- Open the attached "IN-149295" project
- Observe the Console
Actual result: "ArgumentNullException: Value cannot be null." is thrown from EditorCompilation.GetTargetAssemblyDefines, and script compilation and IDE project generation stops
Expected result: Malformed versionDefines entry produces a clear importer/validation error naming the missing "name", without an unhandled exception halting the compilation pipeline
Reproducible with: 6000.0.0f1, 6000.0.82f1, 6000.3.22f1, 6000.5.9f1, 6000.6.0b9, 6000.7.0a5
Reproducible on: Windows 11 (25H2)
Not reproducible on: No other environments tested
Workaround: Add the required "name" to the versionDefines entry or remove the versionDefines entry - a non-null name gives the pipeline a valid dictionary key, so the null-key lookup never happens
Notes:
- If the Console is empty, edit "Assets/Repro/Repro.cs" (e.g. add a comment and save) to force a recompile
- If an Inspector "Unsaved Changes" dialog appears for "Repro.asmdef", click Discard - saving repairs the malformed data and hides the bug