Skip to content

Commit 59c7e1d

Browse files
Update LibraryCreator.cs
1 parent 3ceb7db commit 59c7e1d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

class/LibraryCreator.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,11 +540,20 @@ private string FillAssemblyControllerCase(Assembly assembly, string EntryAssembl
540540

541541
ReturnValue += "/*{CaseCodeTemplateValueForControllerName}*/" + Environment.NewLine;
542542

543+
return ReturnValue;
544+
}
545+
546+
private string FillDefaultAssemblyControllerCase()
547+
{
548+
string ReturnValue = "";
549+
543550
if (StaticObject.UseDefaultController && StaticObject.UseSectionInDefaultController)
551+
{
544552
ReturnValue += " default:" + Environment.NewLine;
545553
ReturnValue += " if (!BreakDefaultInSwitch)" + Environment.NewLine;
546554
ReturnValue += " return RunControllerName(\"" + StaticObject.DefaultController + "\", context, true, true);" + Environment.NewLine;
547555
ReturnValue += " break;" + Environment.NewLine;
556+
}
548557

549558
return ReturnValue;
550559
}
@@ -572,7 +581,7 @@ private string FillControllerNameCase()
572581

573582
Assembly assembly = Assembly.GetEntryAssembly();
574583

575-
return FillAssemblyControllerCase(assembly, AssemblyCleanName) + FillDllBinAssemblyControllerCase(AssemblyCleanName);
584+
return FillAssemblyControllerCase(assembly, AssemblyCleanName) + FillDllBinAssemblyControllerCase(AssemblyCleanName) + FillDefaultAssemblyControllerCase();
576585
}
577586

578587
private string SetCleanNameForClass(string CleanName)

0 commit comments

Comments
 (0)