AspNetCore.SassCompiler 1.43.1

AspNetCore.SassCompiler

NuGet Version

Sass Compiler Library for .NET Core 3.x/5.x. without node.

Installation

The installation of this package is quite simple, you can install this package using NuGet with the following command:

# Package Manager
PM> Install-Package AspNetCore.SassCompiler

# .NET CLI
dotnet add package AspNetCore.SassCompiler

Configuration

After adding the package, the Sass styles from the SourceFolder (defaults to: Styles) will automatically be compiled into .css files in the TargetFolder (defaults to: wwwroot\css) on build. You can also adjust the default (--style=compressed) dart-sass Arguments in the appsettings.json. To adjust any of the default configuration, please add one or more of the following settings to the appsettings.json:

{
  "SassCompiler": {
    "SourceFolder": "Styles",
    "TargetFolder": "wwwroot\\css",
    "Arguments": "--style=compressed"
  }
}

Sass watcher

To use the Sass watcher in your project, you must add the following code to your startup.cs:

public void ConfigureServices(IServiceCollection services) 
{
  
#if DEBUG
  services.AddSassCompiler();
#endif

}

I recommend adding the #if DEBUG statement to only use a watcher during debug mode.

Examples

As an example, a configured version of a .NET 5.0 project is added in the /Samples folder. Please see the link below for quick access

.NET 5.0

Showing the top 20 packages that depend on AspNetCore.SassCompiler.

Packages Downloads
SimpleStack
SimpleStack is an all in one easy to use component libary for Blazor, using ideas from Material Design
6
SimpleStack
SimpleStack is an all in one easy to use component libary for Blazor, using ideas from Material Design
5
SimpleStack
SimpleStack is an all in one easy to use component libary for Blazor, using ideas from Material Design
4

.NET Core 3.1

.NET 5.0

Version Downloads Last updated
1.95.1 0 12/10/2025
1.94.2 0 11/20/2025
1.94.1 0 11/18/2025
1.94.0 0 11/12/2025
1.93.3 0 11/03/2025
1.93.2 0 09/24/2025
1.93.1 0 09/23/2025
1.93.0 0 09/22/2025
1.92.1 0 09/08/2025
1.92.0 0 09/03/2025
1.91.0 0 08/26/2025
1.90.0 0 08/10/2025
1.89.2 4 06/27/2025
1.89.1 2 06/27/2025
1.89.0 5 05/22/2025
1.88.0 3 05/22/2025
1.87.0 3 05/22/2025
1.86.2 3 05/22/2025
1.86.0 2 05/22/2025
1.85.1 3 02/26/2025
1.85.0 3 02/26/2025
1.83.4 3 02/26/2025
1.83.1 5 01/14/2025
1.83.0 3 02/26/2025
1.82.0 3 02/26/2025
1.81.1 3 02/26/2025
1.80.6 3 02/26/2025
1.80.5 3 02/26/2025
1.80.4 3 02/26/2025
1.80.2 3 02/26/2025
1.80.1 3 02/26/2025
1.79.5 3 02/26/2025
1.79.3 3 02/26/2025
1.79.1 3 02/26/2025
1.77.8 3 02/26/2025
1.77.5 3 02/26/2025
1.77.4 3 02/26/2025
1.77.3 3 02/26/2025
1.77.2 3 02/26/2025
1.77.1 3 02/26/2025
1.77.0 3 02/26/2025
1.75.0 3 02/26/2025
1.74.1 3 02/26/2025
1.72.0 3 02/26/2025
1.71.1.1 3 02/26/2025
1.71.1 3 02/26/2025
1.71.0 4 02/26/2025
1.70.0 3 02/26/2025
1.69.7 3 02/26/2025
1.69.5 3 02/26/2025
1.69.3 3 02/26/2025
1.69.2 3 02/26/2025
1.69.1 3 02/26/2025
1.68.0 3 02/26/2025
1.67.0 3 02/26/2025
1.66.0 4 02/26/2025
1.64.2 3 02/26/2025
1.64.1 3 02/26/2025
1.64.0 3 02/26/2025
1.63.6 3 02/26/2025
1.63.5 3 02/26/2025
1.63.3 3 02/26/2025
1.63.2 3 02/26/2025
1.62.1 4 02/26/2025
1.61.0 3 02/26/2025
1.60.0 3 02/26/2025
1.59.3 3 02/26/2025
1.58.1 3 02/26/2025
1.58.0 4 02/26/2025
1.57.1 5 02/26/2025
1.56.2 3 02/26/2025
1.56.1 3 02/26/2025
1.55.0 3 02/26/2025
1.54.9 4 02/26/2025
1.54.8 3 02/26/2025
1.54.6 3 02/26/2025
1.54.5.1 3 02/26/2025
1.54.5 3 02/26/2025
1.54.4.1 3 02/26/2025
1.54.4 3 02/26/2025
1.54.3 3 02/26/2025
1.54.1 4 02/26/2025
1.54.0 3 02/26/2025
1.53.0 3 02/26/2025
1.52.3 3 02/26/2025
1.52.2 3 02/26/2025
1.52.1.2 3 02/26/2025
1.52.1.1 3 02/26/2025
1.52.1 3 02/26/2025
1.52.0 3 02/26/2025
1.51.0.4 3 02/26/2025
1.51.0.3 3 02/26/2025
1.51.0.2 3 02/26/2025
1.51.0.1 3 02/26/2025
1.51.0 3 02/26/2025
1.50.1 4 02/26/2025
1.50.0.1 3 02/26/2025
1.50.0 3 02/26/2025
1.49.11 3 02/26/2025
1.49.9 3 02/26/2025
1.49.8 3 02/26/2025
1.49.7 3 02/26/2025
1.49.4 3 02/26/2025
1.49.0 3 02/26/2025
1.48.0 3 02/26/2025
1.47.0 3 02/26/2025
1.45.2 3 02/26/2025
1.45.1 3 02/26/2025
1.45.0.1 3 02/26/2025
1.45.0 3 02/26/2025
1.44.0.1 3 02/26/2025
1.43.5 3 02/26/2025
1.43.4 3 02/26/2025
1.43.3 3 02/26/2025
1.43.2 3 02/26/2025
1.43.1 3 02/26/2025
1.42.1.1 3 02/26/2025
1.42.1 3 02/26/2025
1.42.0 3 02/26/2025
1.41.1 3 02/26/2025
1.41.0 3 02/26/2025
1.40.0 4 02/26/2025
1.39.2 4 02/26/2025
1.39.0 3 02/26/2025
1.0.4 3 02/26/2025
1.0.3 3 02/26/2025
1.0.2 3 02/26/2025
1.0.1 4 02/26/2025
1.0.0 3 02/26/2025
0.1.0 3 02/26/2025