Search Unity

Build command fails

Discussion in 'Editor & General Support' started by EusebiuMarcu, Apr 22, 2019.

  1. EusebiuMarcu

    EusebiuMarcu

    Joined:
    Sep 20, 2018
    Posts:
    26
    Hello,
    I am using Dinomite-Studios/unity-azure-pipelines-tasks (https://github.com/Dinomite-Studios/unity-azure-pipelines-tasks) to create builds inside Azure.
    In one of the tasks, the UnityEditor.exe is called with some parameters:
    [command]"C:\Program Files\Unity\Hub\Editor\2019.1.0f2\Editor\Unity.exe" -batchmode -buildTarget Win64 -projectPath D:\a\1\s\Project -executeMethod AzureDevOps.PerformBuild -logfile D:\a\1\s\logs\Editor.log
    and it fails saying that there are some scripting errors.
    Looking inside the Editor.log I find some errors related to IronPython API.

    Assets\External\...\3rdParty\PythonIntegration\PythonBehaviour.cs(2,17): error CS0234: The type or namespace name 'Scripting' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)

    The problem is that the build from Editor (File->Build Settings...) works fine - no error is reported; also it works if I use a simple BuildPipeline call:
    BuildPipeline.BuildPlayer(scenes, @"C:\...\Builds\App.exe", BuildTarget.StandaloneWindows64, BuildOptions.None);

    Any ideas why the build fails in this case?

    executeMethod AzureDevOps.PerformBuild
    https://github.com/Dinomite-Studios...5b6083c8ed9a752db2dc4bd5dab046/AzureDevOps.cs