diff --git a/eng/pipelines/coreclr/templates/build-perf-maui-apps.yml b/eng/pipelines/coreclr/templates/build-perf-maui-apps.yml index d2e4aadf1bea7..610ee5b5b34d7 100644 --- a/eng/pipelines/coreclr/templates/build-perf-maui-apps.yml +++ b/eng/pipelines/coreclr/templates/build-perf-maui-apps.yml @@ -214,7 +214,9 @@ steps: cp $(Build.SourcesDirectory)/NuGet.config ./NuGet.config echo -e "using Microsoft.AspNetCore.Components; - using Android.App; + #if ANDROID + using Android.App; + #endif namespace mauiblazortesting.Pages { @@ -224,8 +226,12 @@ steps: { if (firstRender) { - var activity = MainActivity.Context as Activity; - activity.ReportFullyDrawn(); + #if ANDROID + var activity = MainActivity.Context as Activity; + activity.ReportFullyDrawn(); + #else + System.Console.WriteLine("__MAUI_Blazor_WebView_OnAfterRender__") + #endif } } }