From fc81482761bcef54446a07be50e19b1bccbd9a3b Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Tue, 2 Jun 2026 02:39:39 +0000
Subject: [PATCH 1/2] Initial plan
From d8aaa7542531def6d9c0c0df068626de87c5b44a Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Tue, 2 Jun 2026 03:09:56 +0000
Subject: [PATCH 2/2] Use PublishWithContainerFiles and remove esproj
references
Co-authored-by: IEvangelist <7679720+IEvangelist@users.noreply.github.com>
---
Aspire.Dev.slnx | 4 ----
src/apphost/Aspire.Dev.AppHost/AppHost.cs | 11 +++++++----
src/statichost/StaticHost/StaticHost.csproj | 13 -------------
3 files changed, 7 insertions(+), 21 deletions(-)
diff --git a/Aspire.Dev.slnx b/Aspire.Dev.slnx
index 5aa406d83..686ad0016 100644
--- a/Aspire.Dev.slnx
+++ b/Aspire.Dev.slnx
@@ -10,8 +10,4 @@
-
-
-
-
diff --git a/src/apphost/Aspire.Dev.AppHost/AppHost.cs b/src/apphost/Aspire.Dev.AppHost/AppHost.cs
index 10b61e4e2..68aabe170 100644
--- a/src/apphost/Aspire.Dev.AppHost/AppHost.cs
+++ b/src/apphost/Aspire.Dev.AppHost/AppHost.cs
@@ -3,18 +3,21 @@
// For deployment: We want to pick AppService as the environment to publish to.
builder.AddAzureAppServiceEnvironment("production");
+var frontend = builder.AddViteApp("frontend", "../../frontend")
+ .WithPnpm();
+
var staticHostWebsite = builder.AddProject("aspiredev")
.WithExternalHttpEndpoints();
+staticHostWebsite.PublishWithContainerFiles(frontend, "./wwwroot");
+
builder.AddAzureFrontDoor(staticHostWebsite);
if (builder.ExecutionContext.IsRunMode)
{
// For local development: Use ViteApp for hot reload and development experience
- builder.AddViteApp("frontend", "../../frontend")
- .WithPnpm()
- .WithUrlForEndpoint("http", static url => url.DisplayText = "aspire.dev (Local)")
- .WithExternalHttpEndpoints();
+ frontend.WithUrlForEndpoint("http", static url => url.DisplayText = "aspire.dev (Local)")
+ .WithExternalHttpEndpoints();
}
builder.Build().Run();
diff --git a/src/statichost/StaticHost/StaticHost.csproj b/src/statichost/StaticHost/StaticHost.csproj
index cbc21955c..844f85781 100644
--- a/src/statichost/StaticHost/StaticHost.csproj
+++ b/src/statichost/StaticHost/StaticHost.csproj
@@ -26,18 +26,5 @@
-
-
-
-
-