Skip to content

Commit

Permalink
fixed compiler bug
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiMisiukevich committed Apr 13, 2020
1 parent 99ab860 commit f95b982
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Reloader/Xamarin.Forms.HotReload.Reloader/HotReloader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit f95b982

Please sign in to comment.