Use compliant API for Less
ForNeVeR opened this issue · comments
Friedrich von Never commented
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);
Friedrich von Never commented
Obsoleted by #49.