ForNeVeR / fornever.me

Friedrich von Never: Engineer, Programmer, Gentleman.

Home Page:https://fornever.me

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use compliant API for Less

ForNeVeR opened this issue · comments

I've found that the way I'm trying to use dotless is (suddenly) not compatible with C#. See dotless/dotless#179 (comment).

Need to replace it with the recommended way (like this):

var config = new DotlessConfiguration();
var engineFactory = new EngineFactory(config);
var engine = engineFactory.GetEngine();
engine.CurrentDirectory = path;

var filePath = Path.Combine(path, fileName);
var content = File.ReadAllText(filePath);
var result = engine.TransformToCss(content, fileName);

Obsoleted by #49.