MintPlayer.AspNetCore.SpaServices.Prerendering 10.2.1

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

MintPlayer.AspNetCore.SpaServices.Prerendering

NuGet Version NuGet License

This package provides enhanced server-side prerendering capabilities for ASP.NET Core single-page applications. It is a dependency of MintPlayer.AspNetCore.SpaServices.Routing.

Installation

NuGet Package Manager

Install-Package MintPlayer.AspNetCore.SpaServices.Prerendering

.NET CLI

dotnet add package MintPlayer.AspNetCore.SpaServices.Prerendering

Features

  • Server-side prerendering with data injection
  • Support for Angular Universal and similar SSR solutions
  • Integration with ASP.NET Core request pipeline

MSBuild Integration

This package includes MintPlayer.AspNetCore.NodeServices which automatically configures your project with build targets for SPA development.

See the NodeServices documentation for details on:

  • EnableSpaBuilder - Master switch to disable SPA build automation
  • SpaRoot - Configure your SPA source folder
  • BuildServerSideRenderer - Toggle SSR bundle building

Disabling SPA Builder

If your project doesn't have a SPA but references this package:

<PropertyGroup>
  <EnableSpaBuilder>false</EnableSpaBuilder>
</PropertyGroup>

Usage

spa.UseSpaPrerendering(options =>
{
    options.BootModulePath = $"{spa.Options.SourcePath}/dist/server/main.js";
    options.BootModuleBuilder = env.IsDevelopment()
        ? new AngularCliBuilder(npmScript: "build:ssr")
        : null;
    options.ExcludeUrls = new[] { "/sockjs-node" };

    options.SupplyData = (context, data) =>
    {
        // Supply data to the prerenderer
        data["message"] = "Hello from server!";
    };
});

License

This project is licensed under the Apache 2.0 License.

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 MintPlayer.AspNetCore.SpaServices.Prerendering:

Package Downloads
MintPlayer.AspNetCore.SpaServices.Routing

This package simplifies the SPA prerendering. Define your SPA routes in your service registration and check which SPA route is activated in the SupplyData callback.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.2.1 70 1/19/2026
10.2.0 87 1/18/2026
10.1.0 100 1/16/2026
10.0.2 95 1/12/2026
10.0.1 216 12/20/2025
10.0.0 520 11/13/2025
10.0.0-rc.6 234 11/11/2025
10.0.0-rc.5 235 11/11/2025
10.0.0-rc.4 153 11/5/2025
10.0.0-rc.3 140 11/5/2025
10.0.0-rc.2 159 11/5/2025
10.0.0-rc.1 137 10/2/2025
9.1.0 1,613 11/22/2024
9.0.0 1,365 11/13/2024
8.3.0 1,628 6/10/2024
8.2.0 8,991 11/28/2023
8.1.0 221 11/28/2023
8.0.0 332 11/14/2023
8.0.0-rc2 105 11/13/2023
8.0.0-rc1 115 11/6/2023
7.0.3 8,052 8/9/2023
7.0.2 2,495 12/6/2022
7.0.1 532 11/15/2022
7.0.0 547 11/14/2022
7.0.0-preview.1 233 10/30/2022
6.1.7 716 8/9/2023
6.1.6 5,979 12/6/2022
6.1.5 634 11/15/2022
6.1.4 873 10/28/2022
6.1.3 8,099 8/26/2022
6.1.2 711 8/26/2022
6.1.1 4,233 7/5/2022
6.1.0 767 7/5/2022
6.0.5-preview1 328 7/5/2022
6.0.4 5,281 12/19/2021
6.0.3 578 12/8/2021
6.0.1 605 12/2/2021
6.0.0 1,425 12/2/2021
1.0.0 525 12/2/2021