Document Aspire 13.3 WithEnvironment unification and compatibility shim mappings#1162
Open
IEvangelist with Copilot wants to merge 2 commits into
Open
Document Aspire 13.3 WithEnvironment unification and compatibility shim mappings#1162IEvangelist with Copilot wants to merge 2 commits into
WithEnvironment unification and compatibility shim mappings#1162IEvangelist with Copilot wants to merge 2 commits into
Conversation
Co-authored-by: IEvangelist <7679720+IEvangelist@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Document 13.3 WithEnvironment API unification and compatibility shims
Document Aspire 13.3 Jun 2, 2026
WithEnvironment unification and compatibility shim mappings
Contributor
There was a problem hiding this comment.
Pull request overview
Updates Aspire 13.3 documentation to reflect the unified polyglot withEnvironment(name, value) API shape and how older per-kind helpers map to it, providing clearer migration direction for existing AppHost code.
Changes:
- Adds a new Aspire 13.3 section in the AppHost “Executable resources” doc describing the unified
withEnvironmentsignature, accepted value kinds, and shim mappings. - Expands the Aspire 13.3 release notes with explicit “before/after” examples and shim-to-unified mapping guidance.
- Introduces additional release-notes callouts highlighting the
WithEnvironmentunification at a higher level.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| src/frontend/src/content/docs/whats-new/aspire-13-3.mdx | Adds release-notes entries and examples describing unified withEnvironment and shim mappings. |
| src/frontend/src/content/docs/app-host/executable-resources.mdx | Documents Aspire 13.3 withEnvironment unification and provides migration guidance for older helpers. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+675
to
+679
| Aspire 13.3 unifies polyglot AppHost environment assignment behind a single `withEnvironment(name, value)` method. Older per-kind helpers are still available as compatibility shims and map directly to the new method: | ||
|
|
||
| - `withEnvironmentEndpoint(name, endpoint)` → `withEnvironment(name, endpoint)` | ||
| - `withEnvironmentParameter(name, parameter)` → `withEnvironment(name, parameter)` | ||
| - `withEnvironmentConnectionString(name, resource)` → `withEnvironment(name, resource)` |
Comment on lines
+732
to
+736
| Compatibility shims continue to work for existing call sites and map as follows: | ||
|
|
||
| - `withEnvironmentEndpoint(name, endpoint)` → `withEnvironment(name, endpoint)` | ||
| - `withEnvironmentParameter(name, parameter)` → `withEnvironment(name, parameter)` | ||
| - `withEnvironmentConnectionString(name, resource)` → `withEnvironment(name, resource)` |
Comment on lines
+304
to
+308
| Compatibility shims keep older call sites working and map directly to the new pattern: | ||
|
|
||
| - `withEnvironmentEndpoint(name, endpoint)` → `withEnvironment(name, endpoint)` | ||
| - `withEnvironmentParameter(name, parameter)` → `withEnvironment(name, parameter)` | ||
| - `withEnvironmentConnectionString(name, resource)` → `withEnvironment(name, resource)` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Aspire 13.3 unified previously divergent polyglot
withEnvironmentAPIs into a singlewithEnvironment(name, value)shape while retaining compatibility shims for older call sites. This PR updates AppHost docs and 13.3 release notes to reflect the unified signature, shim mappings, and migration direction.AppHost docs: unified API + migration guidance
app-host/executable-resources.mdxwith a dedicated Aspire 13.3 section covering:withEnvironment(name, value)usage13.3 changelog: explicit unification entry + before/after
whats-new/aspire-13-3.mdxwith:WithEnvironmentunification and shims