From fbf9d245d2b998f91ab8da62e6b3a91e5c3d4093 Mon Sep 17 00:00:00 2001 From: "nikita.romanov" Date: Mon, 28 Oct 2024 21:06:09 +0400 Subject: [PATCH] [Fix] Does not profile iOS app in release configuration. #132 --- src/VSCode.Extension/providers/dotnetTaskProvider.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/VSCode.Extension/providers/dotnetTaskProvider.ts b/src/VSCode.Extension/providers/dotnetTaskProvider.ts index b6c3a6e..c1e5dd2 100644 --- a/src/VSCode.Extension/providers/dotnetTaskProvider.ts +++ b/src/VSCode.Extension/providers/dotnetTaskProvider.ts @@ -28,8 +28,10 @@ export class DotNetTaskProvider implements vscode.TaskProvider { builder.conditional('-p:AndroidEnableProfiler=true', () => ConfigurationController.profiler); } if (ConfigurationController.isAppleMobile()) { - builder.conditional('-p:_BundlerDebug=true', () => !ConfigurationController.profiler); - builder.conditional('-p:MtouchProfiling=true', () => ConfigurationController.profiler); + // 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'); } if (ConfigurationController.isMacCatalyst()) { builder.conditional('-p:_BundlerDebug=true', () => !ConfigurationController.profiler);