Exception in AOTGenerationConfig.ScanProject when build from command line.

Issue #282 resolved
Vlad Lomakin
created an issue

1) AOTGenerationConfig.ScanProject throw exeption when called from command line build.

ArgumentException: Invalid SceneManagerSetup:
 No loaded scene found.
 One active scene is required. Number of active scenes: 0
  at (wrapper managed-to-native) UnityEditor.SceneManagement.EditorSceneManager:RestoreSceneManagerSetup (UnityEditor.SceneManagement.SceneSetup[])
  at Sirenix.Serialization.AOTGenerationConfig.ProcessScenes () [0x00000] in <filename unknown>:0 
  at Sirenix.Serialization.AOTGenerationConfig.ProcessProject (System.Collections.Generic.List`1& serializedTypes) [0x00000] in <filename unknown>:0 
  at Sirenix.Serialization.AOTGenerationConfig.ScanProject ()

2) Create build script:

public class BuildManager
   private static void Build()

Сall command: %unityPath% -quit -batchmode -projectPath %projectPath% -executeMethod BuildManager.Build

4) Unity 2017.3.1f1

5) Odin

6) Windows 10

Comments (2)

  1. Log in to comment