Smartstore.EmbeddedSass.Net 1.2.1

dotnet add package Smartstore.EmbeddedSass.Net --version 1.2.1
                    
NuGet\Install-Package Smartstore.EmbeddedSass.Net -Version 1.2.1
                    
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="Smartstore.EmbeddedSass.Net" Version="1.2.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Smartstore.EmbeddedSass.Net" Version="1.2.1" />
                    
Directory.Packages.props
<PackageReference Include="Smartstore.EmbeddedSass.Net" />
                    
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 Smartstore.EmbeddedSass.Net --version 1.2.1
                    
#r "nuget: Smartstore.EmbeddedSass.Net, 1.2.1"
                    
#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 Smartstore.EmbeddedSass.Net@1.2.1
                    
#: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=Smartstore.EmbeddedSass.Net&version=1.2.1
                    
Install as a Cake Addin
#tool nuget:?package=Smartstore.EmbeddedSass.Net&version=1.2.1
                    
Install as a Cake Tool

Smartstore EmbeddedSass.Net

Smartstore's fork of EmbeddedSass.Net, an asynchronous .NET host for the Embedded Sass Protocol.

Why this fork exists

We needed to ship a fix for a callback ID reuse race without waiting for an upstream release. Dart Sass may reuse a callback ID immediately after receiving a response, while the host's asynchronous send is still completing. The original host could reject this valid callback because the previous ID was still registered as active, causing compilation to fail. This fork releases the ID before sending the response and ensures that completion of an earlier send cannot remove a newer callback using the same ID. Regression tests cover custom function callbacks and importer callbacks.

Packages and installation

  • Smartstore.EmbeddedSass.Net provides the .NET host for an externally supplied Dart Sass compiler.
  • Smartstore.EmbeddedSass.Net.Compiler includes the host dependency and bundled Dart Sass executables for Windows, macOS, and Linux on x64 and ARM64.

For the bundled compiler, reference:

<PackageReference Include="Smartstore.EmbeddedSass.Net.Compiler" Version="1.2.1" />
using EmbeddedSass;
using EmbeddedSass.Compiler;

var options = new SassCompilerOptions().UseBundledDartSass();
await using var compiler = new SassCompiler(options);
var result = await compiler.CompileStringAsync("a { color: red; }");
Console.WriteLine(result.Css);

For an externally managed Dart Sass compiler, reference Smartstore.EmbeddedSass.Net instead and configure SassCompilerOptions.CompilerPath.

The packages retain the original assembly names and namespaces. Replace the corresponding upstream package references; do not install both distributions together. Only the two packages listed above are distributed by this fork.

Source and license

The original MIT license and copyright notices are preserved. Bundled Dart Sass retains its own license and third-party notices, included in the compiler package.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Smartstore.EmbeddedSass.Net:

Package Downloads
Smartstore.EmbeddedSass.Net.Compiler

Bundled Dart Sass compilers for EmbeddedSass.Net on Windows, macOS, and Linux.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.2.1 1,147 10/19/2026

Smartstore fork: fixes the callback ID reuse race in function and importer responses.