Ignore themes with /bin folder in RawThemeExtensionLoader, as PreCompiledExtensionLoader does the job

--HG--
branch : dev
This commit is contained in:
Sebastien Ros
2010-09-30 14:23:07 -07:00
parent 337d18c8d3
commit 762b5777f3

View File

@@ -31,6 +31,14 @@ namespace Orchard.Environment.Extensions.Loaders {
return null;
}
var assemblyPath = _virtualPathProvider.Combine(descriptor.Location, descriptor.Name, "bin",
descriptor.Name + ".dll");
// ignore themes with /bin in this loader
if ( !_virtualPathProvider.FileExists(assemblyPath) )
return null;
return new ExtensionProbeEntry {
Descriptor = descriptor,
LastWriteTimeUtc = DateTime.MinValue,