Duende.RazorSlices 1.0.1

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

Duende.RazorSlices

This is a vendored fork of DamianEdwards/RazorSlices, maintained here for supply-chain control reasons. Vendoring allows Duende to pin the exact source, apply security patches independently, and ship the package under the Duende.* namespace without taking a transitive dependency on an externally-published NuGet package.

The upstream project is copyright Damian Edwards and licensed under the Apache 2.0 license. See ThirdPartyNotices.txt for the full attribution.

Upstream sync point

Last synced to upstream commit c286ca0 (2026-09-19, main after DamianEdwards/RazorSlices#146). When re-syncing, copy upstream src/, tests/, and samples/ source files, then apply the transformations listed below.

Differences from upstream

  • Package ID, assembly name, and root namespace changed from RazorSlices to Duende.RazorSlices
  • Source generator package renamed from RazorSlices.SourceGenerator to Duende.RazorSlices.SourceGenerator
  • The source generator's model-type resolver matches the Duende.RazorSlices namespace when walking slice base types
  • Samples keep the upstream RazorSlices.Samples.* namespace and add explicit using Duende.RazorSlices; directives where needed
  • Duende license headers, LF line endings, and dotnet format applied
  • Target framework updated to net10.0
  • Strong-naming disabled (not required for vendored use)
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.
  • net10.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Duende.RazorSlices:

Package Downloads
Duende.ConformanceReport

Conformance assessment for FAPI 2.0 and OAuth 2.1 profiles

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Duende.RazorSlices:

Repository Stars
DuendeSoftware/products
The most flexible and standards-compliant OpenID Connect and OAuth 2.x framework for ASP.NET Core
Version Downloads Last Updated
1.0.1 877 9/24/2026
1.0.0 27,933 2/19/2026