We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6800d90 + 662f189 commit 4d34b84Copy full SHA for 4d34b84
lib/commands/add-platform.ts
@@ -24,6 +24,11 @@ export class AddPlatformCommand extends ValidatePlatformCommandBase implements I
24
let canExecute = true;
25
for (const arg of args) {
26
this.$platformService.validatePlatform(arg, this.$projectData);
27
+
28
+ if (!this.$platformService.isPlatformSupportedForOS(arg, this.$projectData)) {
29
+ this.$errors.fail(`Applications for platform ${arg} can not be built on this OS`);
30
+ }
31
32
const output = await super.canExecuteCommandBase(arg);
33
canExecute = canExecute && output.canExecute;
34
}
0 commit comments