mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Removing dependency on "Dependencies.xml"
--HG-- branch : dev
This commit is contained in:
@@ -24,9 +24,7 @@ namespace Orchard.FileSystems.Dependencies {
|
||||
public Localizer T { get; set; }
|
||||
|
||||
private string PersistencePath {
|
||||
get {
|
||||
return _appDataFolder.Combine(BasePath, FileName);
|
||||
}
|
||||
get { return _appDataFolder.Combine(BasePath, FileName); }
|
||||
}
|
||||
|
||||
public DependencyDescriptor GetDescriptor(string moduleName) {
|
||||
@@ -55,10 +53,6 @@ namespace Orchard.FileSystems.Dependencies {
|
||||
}
|
||||
}
|
||||
|
||||
public IEnumerable<string> GetViewCompilationDependencies() {
|
||||
yield return _appDataFolder.GetVirtualPath(this.PersistencePath);
|
||||
}
|
||||
|
||||
private IEnumerable<DependencyDescriptor> ReadDependencies(string persistancePath) {
|
||||
Func<string, XName> ns = (name => XName.Get(name));
|
||||
Func<XElement, string, string> elem = (e, name) => e.Element(ns(name)).Value;
|
||||
|
@@ -23,6 +23,5 @@ namespace Orchard.FileSystems.Dependencies {
|
||||
DependencyDescriptor GetDescriptor(string moduleName);
|
||||
IEnumerable<DependencyDescriptor> LoadDescriptors();
|
||||
void StoreDescriptors(IEnumerable<DependencyDescriptor> dependencyDescriptors);
|
||||
IEnumerable<string> GetViewCompilationDependencies();
|
||||
}
|
||||
}
|
||||
|
@@ -84,14 +84,11 @@ namespace Orchard.Mvc.ViewEngines.Razor {
|
||||
provider.AssemblyBuilder.AddAssemblyReference(assembly);
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var virtualDependency in entry.dependencies) {
|
||||
provider.AddVirtualPathDependency(virtualDependency);
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var virtualDependency in _dependenciesFolder.GetViewCompilationDependencies()) {
|
||||
provider.AddVirtualPathDependency(virtualDependency);
|
||||
}
|
||||
}
|
||||
|
||||
private DependencyDescriptor GetModuleDependencyDescriptor(string virtualPath) {
|
||||
|
Reference in New Issue
Block a user