Skip to content

Commit

Permalink
Add System.Console.WriteLine for non-android platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
TanayParikh authored Apr 20, 2022
1 parent 504e53f commit f1a7fdd
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions eng/pipelines/coreclr/templates/build-perf-maui-apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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
}
}
}
Expand Down

0 comments on commit f1a7fdd

Please sign in to comment.