You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.
I'm going to have multiple web applications sharing base code and it would be great if the Startup class could inherit the Configure method from a parent class. Otherwise, I'm going to have to copy and paste the same boilerplate.
System.Exception: TODO: ConfigureDevelopment or Configure method not found
at Microsoft.AspNet.Hosting.Startup.StartupLoader.LoadStartup(String applicationName, String environmentName, IList`1 diagnosticMessages)
I ran into this same issue and also believe that not requiring declared methods is a good idea so that we can derive the Startup.cs file from a base class.
Changing the line method above to the following would be nice:
I'm going to have multiple web applications sharing base code and it would be great if the Startup class could inherit the Configure method from a parent class. Otherwise, I'm going to have to copy and paste the same boilerplate.
e.g. this wouldn't fail
This returns the basic Configure not found error:
It looks like the update would need to be here: https://github.com/aspnet/Hosting/blob/dev/src/Microsoft.AspNet.Hosting/Startup/StartupLoader.cs
Could GetDeclaredMethod be replaced with GetMethod(String, BindingFlags)?
The text was updated successfully, but these errors were encountered: