static void Process(int jobID ) { Console.WriteLine("Start JobID: {0}...", jobID); var sw = new Stopwatch(); sw.Start(); SassCompiler compiler = new SassCompiler(); { //var result = compiler.CompileFile(Path.Combine(srcpath, @"..\..\bootstrap.scss"), includeSourceComments: false ); var result = compiler.CompileFile(@"default.scss", OutputStyle.Nested, "http://winfly/", false, 5, true, null); File.WriteAllText(String.Format(@"{0}\foundation-libsass{1}.css", OutputDir, jobID), result.CSS); } sw.Stop(); Console.WriteLine("JobID: {0} Took: {1}.", jobID, sw.ElapsedMilliseconds); }
static void Process(int jobID ) { Console.WriteLine("Start JobID: {0}...", jobID); var srcpath = AppDomain.CurrentDomain.BaseDirectory; var sw = new Stopwatch(); sw.Start(); SassCompiler compiler = new SassCompiler(); { //var result = compiler.CompileFile(Path.Combine(srcpath, @"..\..\bootstrap.scss"), includeSourceComments: false ); var result = compiler.CompileFile(Path.Combine(srcpath, @"..\..\default.scss"), includeSourceComments: false); File.WriteAllText(Path.Combine(srcpath, String.Format(@"..\..\foundation-libsass{0}.css", jobID)), result.CSS); } sw.Stop(); Console.WriteLine("JobID: {0} Took: {1}.", jobID, sw.ElapsedMilliseconds); }