IEvangelist.Aspire.Hosting.Netlify 13.4.0

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

🚀 Aspire.Hosting.Netlify

Published to NuGet as IEvangelist.Aspire.Hosting.Netlify — the Aspire.* prefix is reserved by Microsoft, so this community integration ships under the IEvangelist.* prefix.

NuGet PR Validation Publish NuGet Package License: MIT

Deploy any JavaScript frontend to Netlify with three lines of C#.

A first-party-feeling Aspire integration that turns aspire deploy into a one-command Netlify deploy — for Angular, Astro, Next.js, React, Svelte, Vue, and anything else AddJavaScriptApp understands.

📚 Read the docs →

Terminal window showing a successful Netlify deployment process with green checkmarks indicating completed build steps and deploy confirmation messages

Quickstart

dotnet add package IEvangelist.Aspire.Hosting.Netlify
dotnet add package Aspire.Hosting.JavaScript
dotnet add package CommunityToolkit.Aspire.Hosting.JavaScript.Extensions
var builder = DistributedApplication.CreateBuilder(args);

builder.Pipeline.AddNetlifyDeployPipeline();

builder.AddJavaScriptApp("astro", "../astro")
    .PublishAsNetlifySite("dist");

builder.Build().Run();
aspire run     # boots the dev server alongside the dashboard
aspire deploy  # builds and ships to Netlify

That's it. The pipeline finds the Netlify CLI (auto-installs if missing), resolves your auth token (parameter > NETLIFY_AUTH_TOKEN > interactive ntl login), and deploys the directory you point it at.

Why this integration?

  • 🪄 Pipeline-aware. Hooks into Aspire's deploy pipeline, so aspire deploy is the one command. No bespoke shell scripts, no hand-rolled GitHub Actions.
  • 🟦 Multi-language. Annotated with the Aspire Type System so a TypeScript AppHost gets fully-typed publishAsNetlifySite(...).
  • 🔐 Secret-safe auth. Tokens flow through IResourceBuilder<ParameterResource>; Site IDs and tokens are redacted from logs.
  • 🌐 Six framework demos. Angular, Astro, Next.js, React, Svelte, and Vue under samples/.
  • 📦 OIDC-published. No long-lived NuGet API key — releases are published via Trusted Publishing on every tagged release.

Documentation

The full docs site lives at https://ievangelist.github.io/netlify-aspire-integration/ and is self-updating: every push to main rebuilds it from the markdown under docs/ and the C# XML doc comments under src/IEvangelist.Aspire.Hosting.Netlify/.

🚀 C# Quickstart Drop the integration into a fresh C# AppHost.
🟦 TypeScript Quickstart Use the multi-language Aspire Type System surface.
🛠️ Configuration Every option on NetlifyDeployOptions.
🔐 Authentication Token precedence, secrets, and ntl login.
🤖 CI/CD OIDC publishing, Aspire Deploy, GitHub Actions.
📚 API reference Auto-generated from XML doc comments.

Samples

Six framework demos plus two quickstarts live under samples/. Each sample has its own README:

# Single-site quickstart (Astro + directory-only overload).
aspire run --apphost samples/Quickstart.AppHost/Quickstart.AppHost.csproj

# Six-framework demo.
aspire run --apphost samples/AllFrameworks.AppHost/AllFrameworks.AppHost.csproj

Contributing

Issues and PRs welcome on GitHub. The codebase is straightforward: the integration lives in src/IEvangelist.Aspire.Hosting.Netlify/, tests in src/IEvangelist.Aspire.Hosting.Netlify.Tests/, samples in samples/, and docs in docs/.

dotnet build      # build everything
dotnet test       # run the test suite (50+ tests)
aspire run        # launch the AllFrameworks demo

License

MIT

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

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
13.4.0 173 6/2/2026
0.1.0-preview.1 63 5/5/2026