public static StringBuilder CombineContents( this StringBuilder buff, IEnumerable<string> paths, ContentResolver cr) { return paths.Aggregate( buff, (acc, path) => acc.Append(File.ReadAllText(cr.ResolveUrl(path)))); }
private static void Fox() { var flags = CreateFlags(); InitializeResolver(flags); var resource_attributes = Assembly.LoadFile(flags.WebAppDll); var cr = new ContentResolver { ContentDir = flags.WebAppRoot }; resource_attributes .FindControllers() .FindAttributes<ScriptsAttribute>() .CombineFiles(cr); }