Skip to content

Commit

Permalink
Commands: Look for Program then App if Startup not found
Browse files Browse the repository at this point in the history
Resolves #3802
  • Loading branch information
bricelam committed Dec 11, 2015
1 parent 79b3f08 commit 4e23c4e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public StartupInvoker(
var startupAssembly = Assembly.Load(new AssemblyName(startupAssemblyName));
_startupType = startupAssembly.DefinedTypes.Where(t => t.Name == "Startup" + _environment)
.Concat(startupAssembly.DefinedTypes.Where(t => t.Name == "Startup"))
.Concat(startupAssembly.DefinedTypes.Where(t => t.Name == "Program"))
.Concat(startupAssembly.DefinedTypes.Where(t => t.Name == "App"))
.Select(t => t.AsType())
.FirstOrDefault();
}
Expand Down

0 comments on commit 4e23c4e

Please sign in to comment.