Description
With previous versions of Unity, passing 'SilentlyContinue' to -ErrorAction would cause Unity to ignore initial compiler errors. This is impotant in cases where the Unity is expected to run code which will retrieve compile time dependencies. In Unity 2020, 'SilentlyContinue' doesn't seem to affect Unity and Start-UnityEditor will fail.
I experienced this issue using Nuget4Unity, which is a plugin that performs a nuget package restore after Unity starts. Since Unity fails to start now, the packages are never restored and Start-UnityEditor cannot be used.
Repro Steps:
-Create an empty Unity 2020 project (I am using Unity 2020.3.20f1)
-Import the Nuget4Unity plugin
-Add a Nuget package
-Create a script which references a .net type from the Nuget package
-run "sue [YourProjectPath] -AcceptAPIUpdate -BatchMode -Quit -Wait -BuildTarget 'WSAPlayer' -ErrorAction SilentlyContinue
Expected Result:
UnitySetup emits some errors about references to the types found in the Nuget package and continues to build the project.
Actual Result:
UnitySetup emits some errors about references to the types found in the Nuget package and then exits.
I reproduced this bug in both the release version 5.4.140 and the pre-release version 5.5.146-develop.