LibSassBuilder 1.6.4

Install-Package LibSassBuilder -Version 1.6.4
dotnet add package LibSassBuilder --version 1.6.4
<PackageReference Include="LibSassBuilder" Version="1.6.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LibSassBuilder --version 1.6.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: LibSassBuilder, 1.6.4"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install LibSassBuilder as a Cake Addin
#addin nuget:?package=LibSassBuilder&version=1.6.4

// Install LibSassBuilder as a Cake Tool
#tool nuget:?package=LibSassBuilder&version=1.6.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.


Inspired by Delegate.SassBuilder and LibSassHost

Build NuGet Package .NET Global Tool
Build Nuget .NET Tool


Nuget Package

LibSassBuilder NuGet package adds a build task to compile Sass files to .css. It's compatible with both MSBuild (VS) and dotnet build.

No configuration is required, it will compile the files implicitly on project build.

  • Optionally provide arguments (see Options below):

  <LibSassOutputStyle Condition="'$(Configuration)' == 'Debug'">expanded</LibSassOutputStyle>
  • Or take control of what files to process


  <SassFile Include="Vendor/**/*.scss" /> 
  <SassFile Include="Styles/**/*.scss" Exclude="Styles/unused/**" />
  • Or ignore all previous options (except for <LibSassMessageLevel>) and determine the arguments to the tool yourself

  <LibSassBuilderArgs>directory "$(MSBuildProjectDirectory)"</LibSassBuilderArgs>

.NET Global Tool


dotnet tool install --global LibSassBuilder-Tool


lsb [optional-path] [options]
lsb help
lsb help directory
lsb help files

Generic options

-l, --level      Specify the level of output (silent, default, verbose)

--outputstyle    Specify the style of output (compressed, condensed, nested, expanded)

Directory command (default)

Scans a directory recursively to generate .css files

-e, --exclude    (Default: bin obj logs node_modules) Specify explicit directories to exclude. Overrides the default.

--help           Display this help screen.

--version        Display version information.

value pos. 0     Directory in which to run. Defaults to current directory.


lsb directory
lsb directory sources/styles -e node_modules
lsb directory sources/styles -e node_modules -l verbose

Files in the following directories are excluded by default:

  • bin
  • obj
  • logs
  • node_modules

Files command (default)

Processes the files given on the commandline

--help           Display this help screen.

--version        Display version information.

value pos. 0     File(s) to process.


lsb files sources/style/a.scss sources/vendor/b.scss
lsb files sources/style/a.scss sources/vendor/b.scss -l verbose


LibSassBuilder can be installed on any project, however the underlying build tool requires .NET 5 installed on the machine.


The support is largely dependant on LibSassHost

This tool contains the following supporting packages:

  • LibSassHost.Native.linux-x64
  • LibSassHost.Native.osx-x64

Package as nuget package

./package.ps1 -PackageDir 'C:/LocalPackages' -Version ''

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on LibSassBuilder:

Repository Stars
Full stack dev framework for C# / TypeScript / JavaScript developers
Version Downloads Last updated
1.6.4 5,800 8/9/2021
1.6.3 9,359 6/20/2021
1.6.2 12,378 3/15/2021
1.6.1 2,863 2/25/2021
1.6.0 227 2/23/2021
1.5.0 238 2/19/2021
1.4.0 6,589 11/20/2020
1.3.0 135 11/19/2020
1.2.0 353 11/17/2020
1.1.0 167 11/16/2020
1.0.0 317 11/14/2020