Smartstore.EmbeddedSass.Net.Compiler
1.2.1
dotnet add package Smartstore.EmbeddedSass.Net.Compiler --version 1.2.1
NuGet\Install-Package Smartstore.EmbeddedSass.Net.Compiler -Version 1.2.1
<PackageReference Include="Smartstore.EmbeddedSass.Net.Compiler" Version="1.2.1" />
<PackageVersion Include="Smartstore.EmbeddedSass.Net.Compiler" Version="1.2.1" />
<PackageReference Include="Smartstore.EmbeddedSass.Net.Compiler" />
paket add Smartstore.EmbeddedSass.Net.Compiler --version 1.2.1
#r "nuget: Smartstore.EmbeddedSass.Net.Compiler, 1.2.1"
#:package Smartstore.EmbeddedSass.Net.Compiler@1.2.1
#addin nuget:?package=Smartstore.EmbeddedSass.Net.Compiler&version=1.2.1
#tool nuget:?package=Smartstore.EmbeddedSass.Net.Compiler&version=1.2.1
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 | Versions 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. |
-
net10.0
- Google.Protobuf (>= 3.33.1)
- Smartstore.EmbeddedSass.Net (>= 1.2.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.2.1 | 1,175 | 10/19/2026 |
Smartstore fork: fixes the callback ID reuse race in function and importer responses.