Closed maxbanas closed 3 years ago
Describe the bug RazorLightEngineBuilder throws an exception when .AddDefaultNamespaces is used, even options is never set by .UseOptions:
RazorLightEngineBuilder
.AddDefaultNamespaces
options
.UseOptions
RazorLight.RazorLightException : namespaces has conflicting settings, configure using either fluent configuration or setting an Options object.
To Reproduce Steps to reproduce the behavior:
new RazorLightEngineBuilder() .UseEmbeddedResourcesProject(typeof(Root)) .AddDefaultNamespaces("123") .Build();
Expected behavior No exception should be thrown.
Describe the bug
RazorLightEngineBuilder
throws an exception when.AddDefaultNamespaces
is used, evenoptions
is never set by.UseOptions
:To Reproduce Steps to reproduce the behavior:
Expected behavior No exception should be thrown.