I tried the AddMvcDependencyResolver as demonstrated in the GETTING_STARTED.md but it does not appear to work as expected.
I added the Mvc Package (have been using the base fine in this web forms project for a couple of weeks now).
public static class ApplicationStart
{
private static ApplicationDependencyInjection resolver;
public static void PreStart()
{
resolver = new ApplicationDependencyInjectionBuilder()
.ConfigureServices(ConfigureServices)
.AddMvcDependencyResolver()
.Build();
Debug.WriteLine("CurrentResolver: " +
System.Web.Mvc.DependencyResolver.Current.GetType().FullName); // <-- this outputs the type for the default mvc resolver.
}
private static void ConfigureServices(IServiceCollection services) { /* unrelated */ }
}
I tried the
AddMvcDependencyResolveras demonstrated in theGETTING_STARTED.mdbut it does not appear to work as expected.I added the Mvc Package (have been using the base fine in this web forms project for a couple of weeks now).