public static void RegisterAssembly(RegisterSettings registerSettings) { string basePath = String.Join("/", new[] { "Views", registerSettings.ViewsLocation }.Where(s => !String.IsNullOrEmpty(s))); var assemblyResources = new AssemblyResources(registerSettings.Assembly, basePath); if (assemblyResources.HasResources) { ViewResources.Add(assemblyResources); } if (embeddedViewsEnabled && !registered) { RegisterIfNecessary(); } }
public AssemblyResourceVirtualDirectory(string virtualPath, VirtualDirectory prevDirectory, AssemblyResources assemblyData) : base(virtualPath) { this.prevDirectory = prevDirectory; this.assemblyResources = assemblyData; }