UWP build task fails
See original GitHub issueI am trying to build for UWP but the task fails and the log contains no errors.
The Unity build task has the Build target set to UWP and in Advanced section the Command line arguments are -quit -nographics -executeMethod BuildUWP.PerformBuild -logFile $(logpath.logFilePath)
`[command]“C:\Program Files\Unity\Hub\Editor\2019.1.12f1\Editor\Unity.exe” -batchmode -buildTarget WindowsStoreApps -projectPath d:\a\1\s\App -quit -nographics -executeMethod BuildUWP.PerformBuild -logFile d:\a\1\s\UnityActivationLog.log
Checking whether Unity process is still running…
Unity process has finished. Checking for build output in d:\a\1\s\App\Build\WindowsStoreApps ##[debug]task result: Failed ##[error]The Unity build task finished without results. Check editor logs for details.
public class BuildUWP : MonoBehaviour { #if UNITY_EDITOR [MenuItem(“Build/Virtu/UWP”)] public static void PerformBuild() { BuildPlayerOptions buildPlayerOptions = new BuildPlayerOptions();
buildPlayerOptions.scenes = new[] {
"Assets/Scenes/Main.unity",
};
var outputFile = "./BuildUWP/";
buildPlayerOptions.locationPathName = outputFile;
buildPlayerOptions.target = BuildTarget.WSAPlayer;
buildPlayerOptions.targetGroup = BuildTargetGroup.WSA;
BuildPipeline.BuildPlayer(buildPlayerOptions);
}
#endif }`
If I run the same command on a local machine, the build is succcessful. Any idea why?
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (7 by maintainers)
Top GitHub Comments
The Bug with getting the version is back #77
The Unity Get Project Version: ##[debug]Evaluating condition for step: ‘Unity Get Project Version’ ##[debug]Evaluating: succeeded() ##[debug]Evaluating succeeded: ##[debug]=> True ##[debug]Result: True ##[section]Starting: Unity Get Project Version
Task : Unity Get Project Version Description : Gets the project version of a Unity project. Version : 1.0.2 Author : Dinomite Studios Help : Gets the project version of a Unity project. More Information
##[debug]agent.TempDirectory=D:\a_temp ##[debug]loading inputs and endpoints ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION ##[debug]loading INPUT_UNITYPROJECTPATH ##[debug]loading SECRET_PASSWORD ##[debug]loading SECRET_SERIAL ##[debug]loaded 6 ##[debug]Agent.ProxyUrl=undefined ##[debug]Agent.CAInfo=undefined ##[debug]Agent.ClientCert=undefined ##[debug]Agent.SkipCertValidation=undefined ##[debug]check path : D:\a_tasks\UnityGetProjectVersionTask_38ec98bf-601a-4390-9f2e-23d43dd6dbba\1.0.2\task.json ##[debug]adding resource file: D:\a_tasks\UnityGetProjectVersionTask_38ec98bf-601a-4390-9f2e-23d43dd6dbba\1.0.2\task.json ##[debug]system.culture=en-US ##[debug]unityProjectPath=D:\a\1\s\App ##[debug]set projectVersion=2019.1.12f1 m_EditorVersionWithRevision ##[debug]Processed: ##vso[task.setvariable variable=projectVersion;issecret=false;]2019.1.12f1%0D%0Am_EditorVersionWithRevision ##[debug]task result: Succeeded ##[debug]Processed: ##vso[task.complete result=Succeeded;]Found project version: 2019.1.12f1%0D%0Am_EditorVersionWithRevision ##[section]Finishing: Unity Get Project Version
Hi everyone, better late than never I just published v2.7 of the extension. All of the tasks will now stream logs to DevOps. So you can easily monitor what’s going on. Also V3 of the build task gives you options to use your own build scripts. Also there is now a
Unity CMD
task for full control.