MintPlayer.AspNetCore.SpaServices
10.1.0
dotnet add package MintPlayer.AspNetCore.SpaServices --version 10.1.0
NuGet\Install-Package MintPlayer.AspNetCore.SpaServices -Version 10.1.0
<PackageReference Include="MintPlayer.AspNetCore.SpaServices" Version="10.1.0" />
<PackageVersion Include="MintPlayer.AspNetCore.SpaServices" Version="10.1.0" />
<PackageReference Include="MintPlayer.AspNetCore.SpaServices" />
paket add MintPlayer.AspNetCore.SpaServices --version 10.1.0
#r "nuget: MintPlayer.AspNetCore.SpaServices, 10.1.0"
#:package MintPlayer.AspNetCore.SpaServices@10.1.0
#addin nuget:?package=MintPlayer.AspNetCore.SpaServices&version=10.1.0
#tool nuget:?package=MintPlayer.AspNetCore.SpaServices&version=10.1.0
MintPlayer.AspNetCore.SpaServices
This package contains the ASP.NET Core SPA prerenderer, enabling server-side rendering for single-page applications built with Angular, React, or other frameworks.
Installation
NuGet Package Manager
Install-Package MintPlayer.AspNetCore.SpaServices
.NET CLI
dotnet add package MintPlayer.AspNetCore.SpaServices
Features
- Server-side prerendering for SPAs
- Integration with ASP.NET Core middleware pipeline
- Support for data passing between server and client
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 automationSpaRoot- Configure your SPA source folderBuildServerSideRenderer- Toggle SSR bundle building
Disabling SPA Builder
If your project doesn't have a SPA but references this package:
<PropertyGroup>
<EnableSpaBuilder>false</EnableSpaBuilder>
</PropertyGroup>
Basic Usage
app.UseSpa(spa =>
{
spa.Options.SourcePath = "ClientApp";
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" };
});
if (env.IsDevelopment())
{
spa.UseAngularCliServer(npmScript: "start");
}
});
Related Packages
- MintPlayer.AspNetCore.NodeServices - Node.js integration (included)
- MintPlayer.AspNetCore.SpaServices.Prerendering - Enhanced prerendering
- MintPlayer.AspNetCore.SpaServices.Routing - SPA route integration
License
This project is licensed under the Apache 2.0 License.
| 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
- MintPlayer.AspNetCore.NodeServices (>= 10.1.0)
- MintPlayer.AspNetCore.SpaServices.Abstractions (>= 10.1.0)
- Newtonsoft.Json (>= 13.0.4)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on MintPlayer.AspNetCore.SpaServices:
| Package | Downloads |
|---|---|
|
MintPlayer.AspNetCore.SpaServices.Prerendering
This package is built as a dependency of MintPlayer.AspNetCore.SpaServices.Routing. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 10.1.0 | 33 | 1/16/2026 |
| 10.0.2 | 106 | 1/12/2026 |
| 10.0.1 | 223 | 12/20/2025 |
| 10.0.0 | 480 | 11/13/2025 |
| 10.0.0-rc.6 | 234 | 11/11/2025 |
| 10.0.0-rc.5 | 229 | 11/11/2025 |
| 10.0.0-rc.4 | 157 | 11/5/2025 |
| 10.0.0-rc.3 | 138 | 11/5/2025 |
| 10.0.0-rc.1 | 149 | 10/2/2025 |
| 9.0.0 | 2,988 | 11/13/2024 |
| 8.3.0 | 1,660 | 6/10/2024 |
| 8.2.0 | 8,920 | 11/28/2023 |
| 8.1.0 | 369 | 11/28/2023 |
| 8.0.0 | 373 | 11/14/2023 |
| 8.0.0-rc2 | 173 | 11/13/2023 |
| 8.0.0-rc1 | 158 | 11/6/2023 |
| 7.0.3 | 7,958 | 8/9/2023 |
| 7.0.2 | 2,473 | 12/6/2022 |
| 7.0.1 | 545 | 11/15/2022 |
| 7.0.0 | 620 | 11/14/2022 |
| 7.0.0-preview.1 | 248 | 10/30/2022 |
| 6.1.7 | 729 | 8/9/2023 |
| 6.1.6 | 6,087 | 12/6/2022 |
| 6.1.5 | 796 | 11/15/2022 |
| 6.1.4 | 999 | 10/28/2022 |
| 6.1.3 | 8,149 | 8/26/2022 |
| 6.1.2 | 803 | 8/26/2022 |
| 6.1.1 | 4,675 | 7/5/2022 |
| 6.1.0 | 868 | 7/5/2022 |
| 6.0.4 | 5,369 | 12/19/2021 |
| 6.0.3 | 615 | 12/8/2021 |
| 6.0.1 | 707 | 12/2/2021 |
| 6.0.0 | 1,448 | 12/2/2021 |
| 1.0.0 | 549 | 12/2/2021 |