question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

UWP build task fails

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
eusebiucommented, Aug 1, 2019

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

0reactions
FejZacommented, Apr 22, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visual Studio Build Task failure on UWP
I have a hosted build that has been working successfully but two days ago it started failing. The Visual Studio Build task is...
Read more >
UWP Build fails when using 64BitCompiler - Stack Overflow
I have a UWP Application which I build via a CI / CD pipeline on Azure DevOps in a Hosted Windows 2019 with...
Read more >
Failed Builds - Visual Studio App Center - Microsoft Learn
There are various reasons why your build could have failed that might be unique to your project. Usually an efficient way to diagnose...
Read more >
UWP build error. - Unity Forum
I can build the project to UWP in unity. I can create a package in visual studio. however, I get the error i...
Read more >
UWP ARM build to release : error APPX0002
UWP ARM build to release : error APPX0002: Task 'GenerateAppxManifest' failed. An item with the same key has already been added.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found