Install the Android workload before asking it for its dependencies
Build / Desktop, server and tools (push) Successful in 29s

InstallAndroidDependencies is a target of the Android SDK workload, so on
a runner without it the build stopped at NETSDK1147.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012CzABvBkbcFqoHdmi8b9WB
This commit is contained in:
thepraandClaude Opus 5.5 committed 2026-10-15 01:21:43 +02:00
1 parent 8eaf9f36fc
commit b66ee80a33
1 file changed
+1 -1
+1 -1
View File
@@ -250,9 +250,9 @@ string Android()
var keystore = Environment.GetEnvironmentVariable(KeystoreVariable);
if (string.IsNullOrEmpty(keystore) || !File.Exists(keystore) || string.IsNullOrEmpty(Environment.GetEnvironmentVariable(KeystorePasswordVariable)))
throw new InvalidOperationException($"{KeystoreVariable} (a keystore file) and {KeystorePasswordVariable} must be set to sign the APK");
EnsureWorkload("android");
var jdk = Jdk();
var sdk = AndroidSdk(jdk);
EnsureWorkload("android");
var stage = Reset(Path.Combine(root, "dist", "android"));
Dotnet(["publish", android, "-c", "Release", "-f", "net10.0-android", "-o", stage, $"-p:JavaSdkDirectory={jdk}", $"-p:AndroidSdkDirectory={sdk}",
"-p:AndroidKeyStore=true", $"-p:AndroidSigningKeyStore={keystore}", $"-p:AndroidSigningKeyAlias={KeyAlias}",