AspNetCore.SassCompiler 1.43.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package AspNetCore.SassCompiler --version 1.43.3
                    
NuGet\Install-Package AspNetCore.SassCompiler -Version 1.43.3
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AspNetCore.SassCompiler" Version="1.43.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AspNetCore.SassCompiler" Version="1.43.3" />
                    
Directory.Packages.props
<PackageReference Include="AspNetCore.SassCompiler" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AspNetCore.SassCompiler --version 1.43.3
                    
#r "nuget: AspNetCore.SassCompiler, 1.43.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package AspNetCore.SassCompiler@1.43.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AspNetCore.SassCompiler&version=1.43.3
                    
Install as a Cake Addin
#tool nuget:?package=AspNetCore.SassCompiler&version=1.43.3
                    
Install as a Cake Tool

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

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (20)

Showing the top 5 NuGet packages that depend on AspNetCore.SassCompiler:

Package Downloads
JJMasterData.Web

JJMasterData is a codeless CRUD Generator from database metadata. This package contains the Data Dictionary Razor Class Library with all necessary packages.

ThePensionsRegulator.GovUk.Frontend

Based on the GOV.UK Design System and GovUk.Frontend.AspNetCore. Adds extra features and components.

ThePensionsRegulator.GovUk.Frontend.Umbraco

GOV.UK Design System components implemented using the block list editor in Umbraco, and classes used to build applications based on these components.

ThePensionsRegulator.Frontend

Based on the GOV.UK Design System and GovUk.Frontend.AspNetCore. Adds extra components targeted at The Pensions Regulator including The Pensions Regulator branding.

Enter.Ui

Package Description

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on AspNetCore.SassCompiler:

Repository Stars
dotnetcore/BootstrapBlazor
Bootstrap Blazor is an enterprise-level UI component library based on Bootstrap and Blazor.
JJConsulting/JJMasterData
.NET CRUD generator library with Bootstrap support to create dynamic forms at runtime from a data dictionary.
Version Downloads Last Updated
1.89.2 22,772 6/10/2025
1.89.1 5,044 6/2/2025
1.89.0 11,623 5/16/2025
1.88.0 7,457 5/12/2025
1.87.0 23,052 4/22/2025
1.86.2 21,673 4/3/2025
1.86.0 21,641 3/18/2025
1.85.1 30,894 2/25/2025
1.85.0 7,863 2/14/2025
1.83.4 142,811 1/18/2025
1.83.1 17,707 1/6/2025
1.83.0 32,161 12/13/2024
1.82.0 21,633 12/4/2024
1.81.1 6,347 12/3/2024
1.80.6 60,091 11/4/2024
1.80.5 7,612 10/30/2024
1.80.4 6,867 10/24/2024
1.80.2 7,183 10/18/2024
1.80.1 4,223 10/17/2024
1.79.5 52,787 10/13/2024
1.79.3 32,628 9/21/2024
1.79.1 6,928 9/18/2024
1.77.8 104,598 7/12/2024
1.77.5 34,726 6/12/2024
1.77.4 10,536 6/3/2024
1.77.3 11,928 5/30/2024
1.77.2 25,913 5/17/2024
1.77.1 21,726 5/11/2024
1.77.0 698 5/10/2024
1.75.0 34,205 4/12/2024
1.74.1 15,870 4/4/2024
1.72.0 63,461 3/14/2024
1.71.1.1 30,027 3/1/2024
1.71.1 11,552 2/24/2024
1.71.0 4,487 2/16/2024
1.70.0 49,996 1/18/2024
1.69.7 24,293 1/3/2024
1.69.5 102,668 10/26/2023
1.69.3 17,289 10/12/2023
1.69.2 898 10/11/2023
1.69.1 1,078 10/10/2023
1.68.0 15,507 9/21/2023
1.67.0 2,540 9/15/2023
1.66.0 27,628 8/18/2023
1.64.2 34,839 8/1/2023
1.64.1 3,136 7/22/2023
1.64.0 5,624 7/20/2023
1.63.6 52,135 6/22/2023
1.63.5 5,682 6/21/2023
1.63.3 10,672 6/12/2023
1.63.2 749 6/8/2023
1.62.1 46,140 4/26/2023
1.61.0 15,392 4/7/2023
1.60.0 4,927 3/25/2023
1.59.3 3,617 3/16/2023
1.58.1 38,342 2/15/2023
1.58.0 7,803 2/1/2023
1.57.1 27,202 12/20/2022
1.56.2 2,339 12/9/2022
1.56.1 7,639 11/21/2022
1.55.0 18,385 9/22/2022
1.54.9 2,888 9/8/2022
1.54.8 3,198 9/1/2022
1.54.6 863 8/30/2022
1.54.5.1 4,081 8/22/2022
1.54.5 1,757 8/21/2022
1.54.4.1 2,835 8/16/2022
1.54.4 2,072 8/11/2022
1.54.3 2,270 8/5/2022
1.54.1 1,056 8/3/2022
1.54.0 10,237 7/23/2022
1.53.0 9,807 7/1/2022
1.52.3 3,094 6/9/2022
1.52.2 1,714 6/3/2022
1.52.1.2 2,471 5/26/2022
1.52.1.1 1,368 5/23/2022
1.52.1 2,041 5/21/2022
1.52.0 690 5/20/2022
1.51.0.4 1,603 5/9/2022
1.51.0.3 832 5/5/2022
1.51.0.2 933 5/3/2022
1.51.0.1 6,426 5/2/2022
1.51.0 18,076 4/26/2022
1.50.1 1,033 4/19/2022
1.50.0.1 1,422 4/11/2022
1.50.0 1,706 4/7/2022
1.49.11 675 4/6/2022
1.49.9 5,440 2/25/2022
1.49.8 1,090 2/19/2022
1.49.7 3,473 2/3/2022
1.49.4 1,278 2/1/2022
1.49.0 1,239 1/19/2022
1.48.0 769 1/13/2022
1.47.0 1,067 1/10/2022
1.45.2 3,009 12/31/2021
1.45.1 1,243 12/21/2021
1.45.0.1 469 12/19/2021
1.45.0 1,026 12/11/2021
1.44.0.1 527 12/10/2021
1.43.5 3,178 11/25/2021
1.43.4 1,246 10/27/2021
1.43.3 641 10/22/2021
1.43.2 762 10/14/2021
1.43.1 719 10/6/2021
1.42.1.1 690 9/29/2021
1.42.1 586 9/22/2021
1.42.0 535 9/21/2021
1.41.1 550 9/17/2021
1.41.0 508 9/15/2021
1.40.0 461 9/14/2021
1.39.2 607 9/10/2021
1.39.0 594 9/9/2021
1.0.4 2,330 8/12/2021
1.0.3 590 6/22/2021
1.0.2 619 6/17/2021
1.0.1 535 6/15/2021
1.0.0 527 6/14/2021
0.1.0 1,361 6/10/2021