Headless.NET.Sdk.Razor 0.2.1

<Sdk Name="Headless.NET.Sdk.Razor" Version="0.2.1" />
                    
For projects that support Sdk, copy this XML node into the project file to reference the package.
#:sdk Headless.NET.Sdk.Razor@0.2.1
                    
#:sdk 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.

Headless.NET.Sdk.Razor

The Razor class-library wrapper: Microsoft.NET.Sdk.Razor plus the complete Headless build baseline. It is available to any compatible .NET project and is not specific to Headless Framework.

Use

Headless does not restrict TargetFramework; Microsoft.NET.Sdk.Razor and the installed targeting packs determine compatibility.

<Project Sdk="Headless.NET.Sdk.Razor/x.y.z">
  <PropertyGroup>
    <TargetFramework>net8.0</TargetFramework>
  </PropertyGroup>
</Project>

Direct PackageReference consumption uses Microsoft.NET.Sdk.Razor:

<PackageReference Include="Headless.NET.Sdk.Razor" Version="x.y.z" PrivateAssets="all" />

Additional-SDK, global.json MSBuild SDK resolution, and .NET 10 #:sdk Headless.NET.Sdk.Razor@x.y.z consumption are also supported. See the family consumption reference.

Razor contract

The package sets HeadlessSdkProjectType=Razor, defaults IsPackable=true, and preserves the mandatory Headless analyzer infrastructure, configurable banned-API policy, audit, CI, symbol, SBOM, and direct-opt-in policies. It is self-contained and ships no buildTransitive assets.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

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
0.2.1 0 8/3/2026
0.2.0 35 8/2/2026