You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f299dd1
Browse filesBrowse the repository at this point in the historyBrowse files
feat(aspire)!: upgrade to Aspire 17 and adopt Project v2 (#1689)
Upgrade the local-development AppHost to Aspire 17 using the CLI and
adopt the new .NET project resource model. Production deployment remains
on the existing Docker/CI pipeline.
## Changes
- Align Aspire packages with 17.0.0 and pin the CLI version in
`aspire.config.json`.
- Replace the obsolete `Aspire.AppHost.Sdk` with `Microsoft.NET.Sdk` and
explicit hosting packages.
- Migrate Web registration and the journey fixture to `AddDotnetProject`
/ `DotnetProjectResource`, preserving database wiring and migration
ordering.
- Upgrade the dev-only Ollama integration to `17.0.0-beta.1052`.
- Read the Copilot setup CLI version from `aspire.config.json`; document
Mermaid resource graphs, Project v2 rebuilds, and Aspire 17's agent
plugin setup. Keep the existing checked-in agent skills.
## Compatibility
**BREAKING CHANGE:** The shared Hosting extensions now return and accept
`IResourceBuilder<DotnetProjectResource>` instead of
`IResourceBuilder<ProjectResource>`. Consuming aggregate AppHosts must
reference `Aspire.Hosting.Dotnet` and update explicitly typed callers.
Project v2 does not support `aspire run --watch`; use the documented
resource rebuild workflow. The Ollama prerelease is intentional and
limited to local development.
## Verification
- AppHost/test project builds with zero warnings and errors.
- All 28 AppHost tests pass, including Docker-backed smoke tests and
browser journeys.
- Isolated CLI startup reaches healthy Web and Ollama model resources;
the existing `qwen2.5-coder:7b` model successfully generates a response.
- Mermaid graph output works. The verification AppHost was stopped
without deleting persistent volumes.
Copy file name to clipboardExpand all lines: README.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,8 @@ For information on setting up your local development environment, please see the
13
13
### Standalone Aspire development
14
14
15
15
Only this repository is required. Install the .NET SDK selected by `global.json`, Node.js/npm,
16
-
the [Aspire CLI](https://aspire.dev/get-started/install-cli/), and a Docker-compatible container runtime.
16
+
the [Aspire CLI](https://aspire.dev/get-started/install-cli/) version pinned by `sdk.version` in
17
+
`aspire.config.json` (`aspire update --self` upgrades an existing install), and a Docker-compatible container runtime.
17
18
Start the container runtime first. The single root solution includes the application, hosting
18
19
library, AppHost, and all tests. The production Dockerfile restores, builds, and publishes only
19
20
the Web project and its dependencies, without loading the Aspire projects.
@@ -31,6 +32,11 @@ and optional Ollama use persistent data volumes; restart with the same command t
31
32
The AppHost has its own `UserSecretsId`, separate from ordinary Web application secrets.
32
33
SQL Server passwords are generated by Aspire unless an AppHost `Parameters:sqlserver-password`
33
34
secret is supplied. Stop only this AppHost using `aspire stop --apphost` with the same project path.
35
+
Add `--format mermaid` to `aspire describe` to print the resource dependency graph as a Mermaid diagram.
36
+
37
+
The Web resource uses Aspire's Project v2 model (`AddDotnetProject`), which the AppHost builds
38
+
before launch. Aspire watch [is not yet implemented for Project v2 resources](https://aspire.dev/integrations/dotnet/migrate-dotnet-project-resource/#check-workflows-before-migrating);
39
+
after changing Web code, rebuild just that resource with `aspire resource essentialcsharp-web rebuild --apphost <path>`.
34
40
35
41
Local AI defaults to Ollama (`qwen2.5-coder:7b`, approximately 5 GB download); local vector search
36
42
is not enabled. Disable model downloads before starting when chat is unnecessary:
0 commit comments