Taritsyn / LibSassHost

.NET wrapper around the LibSass library with the ability to support a virtual file system.
Apache License 2.0
82 stars 11 forks source link

NO CSS file created in OutputPath #29

Closed gopinathbecse closed 6 years ago

gopinathbecse commented 6 years ago

Hello @Taritsyn ,

When I try to run the samples from https://github.com/Taritsyn/LibSassHost/tree/master/samples which is calling functions LibSassHost.SassCompiler.CompileFile() or LibSassHost.SassCompiler.Compile(), I can see the compiled string in CompilationResult but NO CSS file generated in the targeted output file path.

Do I need to install any special package to make this work?

Note: My target framework is NET40

File.WriteAllText(context.OutputPath, context.OutputString); - will this be enough to save CSS as a file?

Can you help me to resolve this issue?

Taritsyn commented 6 years ago

Hello!

I recommend you read the “No CSS or .map files are output, despite correct output path specified” discussion.

gopinathbecse commented 6 years ago

Thanks, for the reference @Taritsyn. I read the documentation again!

It should also be noted, that this library does not write the result of compilation to disk. Compile and CompileFile methods of the SassCompiler class return the result of compilation in the form of an instance of the CompilationResult class.