You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After running this Start-Process, I still get errors that it is missing projects like the nuget was not restore. If I run Nuget.exe restore from $ProjectPath\Assets it works fine, so I know the Nuget restore works. Also, if I run Nuget.exe after this batchBuild call, the nuget packages are restored proving that the NugetHelper.Restore is not working.
The text was updated successfully, but these errors were encountered:
The way Unity is working (when opening from command line):
runs the C# Compiler and compile the project Scripts (this fails on your side)
runs the -executeMethod specified
so you need to add a second call of the unity-editor with -ignoreCompilerErrors that performs the nuget restore before performing the build see Restoring in CI pipeline #414 (comment)
There is a thread on the Game-CI about this too: game-ci/unity-builder#276 so I know others are seeing issues too.
I am on Windows 11; Unity 2020.3.25f1;
I am trying to do a restore of Nuget packages and it doesn't look like things are working.
$proc = Start-Process -FilePath "$editor" -ArgumentList "-projectPath $($projectPath) -logFile $ ($logFile.FullName) -batchMode -quit -wait -buildOutput $outDir -logDirectory $logDirectory -buildWindows64Player ./PerspectiveView.exe -executeMethod NugetForUnity.NugetHelper.Restore" -PassThru
After running this Start-Process, I still get errors that it is missing projects like the nuget was not restore. If I run Nuget.exe restore from $ProjectPath\Assets it works fine, so I know the Nuget restore works. Also, if I run Nuget.exe after this batchBuild call, the nuget packages are restored proving that the NugetHelper.Restore is not working.
The text was updated successfully, but these errors were encountered: