Fixes: U4-6268 TreeController cannot exist in App_Code

This commit is contained in:
Shannon
2015-02-13 11:50:42 +11:00
parent c0dd32d1f9
commit bcba12abc8

View File

@@ -419,7 +419,10 @@ namespace Umbraco.Core
/// </example>
public static string GetFullNameWithAssembly(this Type type)
{
return string.Concat(type.FullName, ", ", type.Assembly.GetName().Name);
var assemblyName = type.Assembly.GetName();
return string.Concat(type.FullName, ", ",
assemblyName.FullName.StartsWith("App_Code.") ? "App_Code" : assemblyName.Name);
}