public RazorLightDependencyBuilder UseNetFrameworkLegacyFix() { _services.RemoveAll <IAssemblyDirectoryFormatter>(); IAssemblyDirectoryFormatter formatter = new LegacyFixAssemblyDirectoryFormatter(); _services.AddSingleton <IAssemblyDirectoryFormatter>(formatter); return(this); }
public RazorLightDependencyBuilder UseNetFrameworkLegacyFix() { _services.RemoveAll <IAssemblyDirectoryFormatter>(); IAssemblyDirectoryFormatter formatter = new LegacyFixAssemblyDirectoryFormatter(); // ReSharper disable once RedundantTypeArgumentsOfMethod _services.AddSingleton <IAssemblyDirectoryFormatter>(formatter); return(this); }