public void Configure(CassetteSettings settings)
        {
            var configurationSection = GetConfigurationSection();

            settings.IsDebuggingEnabled          = configurationSection.Debug.HasValue ? configurationSection.Debug.Value : IsAspNetDebuggingEnabled;
            settings.IsHtmlRewritingEnabled      = configurationSection.RewriteHtml;
            settings.AllowRemoteDiagnostics      = configurationSection.AllowRemoteDiagnostics;
            settings.SourceDirectory             = new FileSystemDirectory(AppDomainAppPath);
            settings.CacheDirectory              = GetCacheDirectory(configurationSection);
            settings.IsFileSystemWatchingEnabled = configurationSection.IsFileSystemWatchingEnabled && TrustLevel.IsFullTrust() && !IsStaticCacheManifest(settings);

            IsStaticCacheManifest(settings);

            // Include the virtual directory so that if the application is moved to
            // another virtual directory the bundles will be rebuilt with the updated URLs.
            settings.Version += virtualDirectory;
        }