From 604797d33992170c3eeba4376e686fc370ad1422 Mon Sep 17 00:00:00 2001 From: Shannon Date: Fri, 3 Apr 2020 15:54:25 +1100 Subject: [PATCH] fixes DisableAttribute implementation when looking for a type --- src/Umbraco.Core/Composing/DisableAttribute.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Core/Composing/DisableAttribute.cs b/src/Umbraco.Core/Composing/DisableAttribute.cs index 6968e702a1..e826f1c472 100644 --- a/src/Umbraco.Core/Composing/DisableAttribute.cs +++ b/src/Umbraco.Core/Composing/DisableAttribute.cs @@ -1,4 +1,5 @@ using System; +using System.Reflection; namespace Umbraco.Core.Composing { @@ -21,9 +22,9 @@ namespace Umbraco.Core.Composing public DisableAttribute() { } - public DisableAttribute(string fullTypeName) + public DisableAttribute(string fullTypeName, string assemblyName) { - DisabledType = Type.GetType(fullTypeName); + DisabledType = Assembly.Load(assemblyName)?.GetType(fullTypeName); } ///