From 5c2e4fcdabf1110fb48c5cafca943ad1ca53a25f Mon Sep 17 00:00:00 2001 From: David Date: Thu, 19 Oct 2023 09:08:17 -0400 Subject: [PATCH] chore: Fix windows UWP build --- .../Library/Helpers/HotReloadHelper.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Uno.UI.RuntimeTests.Engine.Library/Library/Helpers/HotReloadHelper.cs b/src/Uno.UI.RuntimeTests.Engine.Library/Library/Helpers/HotReloadHelper.cs index c9e0458..868b013 100644 --- a/src/Uno.UI.RuntimeTests.Engine.Library/Library/Helpers/HotReloadHelper.cs +++ b/src/Uno.UI.RuntimeTests.Engine.Library/Library/Helpers/HotReloadHelper.cs @@ -315,7 +315,11 @@ private static (string FileName, int FileLine, int LinePosition) GetDebugParseCo } private static string StartEnd(string str, uint chars = 10) +#if WINDOWS_UWP + => str.Substring(0, Math.Min((int)chars * 2, str.Length - 1)); +#else => str.Length <= chars ? str : $"{str[..(int)chars]}...{str[^(int)chars..]}"; +#endif #endregion } #endif \ No newline at end of file