From 92c511b2b4da8f77389f318a302efa62833d382d Mon Sep 17 00:00:00 2001 From: Ryan Nowak Date: Wed, 28 Feb 2018 13:14:58 -0800 Subject: [PATCH] Fix #2099 - make AssemblyExtension public This is needed when a runtime wants to construct its own configuration manually, especially useful in tests. --- src/Microsoft.AspNetCore.Razor.Language/AssemblyExtension.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Microsoft.AspNetCore.Razor.Language/AssemblyExtension.cs b/src/Microsoft.AspNetCore.Razor.Language/AssemblyExtension.cs index 83b70cd7aa..97f1c31c15 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/AssemblyExtension.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/AssemblyExtension.cs @@ -6,7 +6,7 @@ using System.Reflection; namespace Microsoft.AspNetCore.Razor.Language { - internal class AssemblyExtension : RazorExtension + public class AssemblyExtension : RazorExtension { public AssemblyExtension(string extensionName, Assembly assembly) { @@ -28,7 +28,7 @@ namespace Microsoft.AspNetCore.Razor.Language public Assembly Assembly { get; } - public RazorExtensionInitializer CreateInitializer() + internal RazorExtensionInitializer CreateInitializer() { // It's not an error to have an assembly with no initializers. This is useful to specify a dependency // that doesn't really provide any Razor configuration.