Install
Aspire.Hosting.Netlify is published to NuGet.org as
IEvangelist.Aspire.Hosting.Netlify (the Aspire.* prefix is reserved by
Microsoft) and targets net10.0 with a
floating dependency on Aspire.Hosting 13.2.x.
Prerequisites
Section titled “Prerequisites”- .NET 10 SDK — confirm with
dotnet --info. The integration ships with theAspire.AppHost.Sdk13.2.4 SDK and requires .NET 10. - Aspire CLI — install via
winget install Microsoft.Aspire(Windows),brew install aspire(macOS), or follow theinstall.shscript on Linux. Confirm withaspire --version. - Node.js 20+ — needed by your frontend apps and by the Netlify CLI.
- Netlify CLI — the integration auto-installs
netlify-cliglobally if it isn’t already onPATH. You can pre-install it yourself withnpm install -g netlify-cli.
Add the package
Section titled “Add the package”The Aspire CLI knows how to add hosting integrations to either a C# or a
TypeScript AppHost — use that instead of dotnet add package so the right
integration metadata flows into your AppHost project.
aspire add IEvangelist.Aspire.Hosting.NetlifyIf you’re starting from scratch, scaffold an AppHost first:
mkdir MyAppHost && cd MyAppHostaspire initaspire add IEvangelist.Aspire.Hosting.Netlifyaspire add Aspire.Hosting.JavaScriptFor a TypeScript AppHost, choose TypeScript when aspire init prompts.
aspire add regenerates the .modules/ surface so the integration’s exports
become available to your apphost.ts.
Verify
Section titled “Verify”Run any AppHost that references the package and you should see no missing
references when you call PublishAsNetlifySite(...):
using Aspire.Hosting;using Aspire.Hosting.JavaScript;
var builder = DistributedApplication.CreateBuilder(args);
builder.Pipeline.AddNetlifyDeployPipeline();
builder.AddJavaScriptApp("astro", "../astro") .PublishAsNetlifySite("dist");
builder.Build().Run();Next steps
Section titled “Next steps”- Quickstart — C# and TypeScript walkthrough with tabs.
- Configuration — every option on
NetlifyDeployOptions.