From f97ec77f30906385fae0499f77a4e139058a13b8 Mon Sep 17 00:00:00 2001 From: "nikita.romanov" Date: Mon, 2 Dec 2024 22:16:36 +0400 Subject: [PATCH] Add `AdbTarget` to avoid Microsoft's fantastic code --- src/VSCode/providers/dotnetTaskProvider.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/VSCode/providers/dotnetTaskProvider.ts b/src/VSCode/providers/dotnetTaskProvider.ts index 9a1210d..e2f1a48 100644 --- a/src/VSCode/providers/dotnetTaskProvider.ts +++ b/src/VSCode/providers/dotnetTaskProvider.ts @@ -25,11 +25,11 @@ export class DotNetTaskProvider implements vscode.TaskProvider { builder.append(`-p:AndroidSdkDirectory=${ConfigurationController.androidSdkDirectory}`); builder.conditional('-p:EmbedAssembliesIntoApk=true', () => ConfigurationController.profiler); builder.conditional('-p:AndroidEnableProfiler=true', () => ConfigurationController.profiler); + // TODO: https://github.com/dotnet/android/issues/9567 + builder.conditional(`-p:AdbTarget=-s%20${ConfigurationController.device?.serial}`, () => ConfigurationController.device?.serial); } if (ConfigurationController.isAppleMobile()) { // TODO: https://github.com/xamarin/xamarin-macios/issues/21530 - // builder.conditional('-p:_BundlerDebug=true', () => !ConfigurationController.profiler); - // builder.conditional('-p:MtouchProfiling=true', () => ConfigurationController.profiler); builder.append('-p:MtouchDebug=true'); builder.conditional('-p:BuildIpa=true', () => !ConfigurationController.onMac); }