public override VirtualFile GetFile(string virtualPath) { if (AssemblyResourceManager.IsEmbeddedViewResourcePath(virtualPath) && !base.FileExists(virtualPath)) { var resourceStore = AssemblyResourceManager.GetResourceStoreFromVirtualPath(virtualPath); return(new AssemblyResourceVirtualFile(virtualPath, resourceStore)); } else { return(base.GetFile(virtualPath)); } }
public override VirtualFile GetFile(string virtualPath) { string str; string embedPath = virtualPath; if (IsCrosssAssemblyPath(embedPath, out str)) { embedPath = str; } var assemblyStore = AssemblyResourceManager.GetResourceStoreFromVirtualPath(embedPath); if (assemblyStore != null) { if (embedPath == virtualPath) { return(new AssemblyResourceVirtualFile(virtualPath, assemblyStore)); } return(new AssemblyResourceVirtualFile(virtualPath, assemblyStore, embedPath)); } return(base.GetFile(virtualPath)); }