From f95b98272d992b8981d82748d0a44cf4029a849a Mon Sep 17 00:00:00 2001 From: Andrei Misiukevich Date: Tue, 14 Apr 2020 01:48:47 +0300 Subject: [PATCH] fixed compiler bug --- Reloader/Xamarin.Forms.HotReload.Reloader/HotReloader.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Reloader/Xamarin.Forms.HotReload.Reloader/HotReloader.cs b/Reloader/Xamarin.Forms.HotReload.Reloader/HotReloader.cs index 9afa3c6..df6b7a3 100644 --- a/Reloader/Xamarin.Forms.HotReload.Reloader/HotReloader.cs +++ b/Reloader/Xamarin.Forms.HotReload.Reloader/HotReloader.cs @@ -273,7 +273,9 @@ private void TrySubscribeRendererPropertyChanged(params string[] paths) var hasCodegenAttribute = HasCodegenAttribute(bindable); - if ((!_assemblies.Contains(bindable.GetType().Assembly) || !_codeReloadingEnabled) && !hasCodegenAttribute) + var bAsm = bindable.GetType().Assembly; + var validAssembly = (_assemblies.Contains(bAsm) || bAsm.FullName.StartsWith("HotReload.HotCompile")) && _codeReloadingEnabled; + if (!validAssembly && !hasCodegenAttribute) { return; }