Rename "packages" to "integrations" in aspire.config.json with backward compatibility#15633
Draft
Rename "packages" to "integrations" in aspire.config.json with backward compatibility#15633
Conversation
Agent-Logs-Url: https://github.com/microsoft/aspire/sessions/991be4bf-31eb-490c-8c07-a1cebce5a01a Co-authored-by: maddymontaquila <12660687+maddymontaquila@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix rename packages to integrations in aspire.config.json
Rename "packages" to "integrations" in aspire.config.json
Mar 26, 2026
Contributor
|
@copilot This needs to be backwards compatible. We need to support both now for reading (both packages and integrations) but write integrations in anything new. |
… write only integrations Agent-Logs-Url: https://github.com/microsoft/aspire/sessions/1581ecd1-3d79-4a46-bdd8-030eea387877 Co-authored-by: davidfowl <95136+davidfowl@users.noreply.github.com>
Contributor
Author
Added backward compatibility in a25121c. Now:
|
Copilot
AI
changed the title
Rename "packages" to "integrations" in aspire.config.json
Rename "packages" to "integrations" in aspire.config.json with backward compatibility
Mar 27, 2026
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.
Description
Renames the
"packages"JSON key to"integrations"inaspire.config.jsonwhile maintaining full backward compatibility. The system reads both"packages"(legacy) and"integrations"(new) keys, but always writes"integrations"in new or saved files.Changes
AspireConfigFile.cs: Changed[JsonPropertyName("packages")]→[JsonPropertyName("integrations")]on thePackagesproperty. Added aLegacyPackagesproperty with[JsonPropertyName("packages")]for backward-compatible reading, withMergeLegacyPackages()to merge legacy entries intoPackagesafter deserialization. When both keys exist,"integrations"takes precedence.LegacyPackagesis nulled after merge and excluded from serialization viaWhenWritingNull.extension/src/utils/cliTypes.ts: Addedintegrations?toAspireConfigFileinterface; keptpackages?with@deprecatedmarker for backward compatibility.extension/schemas/aspire-config.schema.json: Added"integrations"property and kept"packages"as deprecated for backward compatibility.aspire.config.jsonfiles: Updated key from"packages"to"integrations".ProjectReferenceTests.csandConfigMigrationTests.csto use"integrations". Added 5 new backward-compatibility tests inAspireConfigFileTests.cscovering: reading legacy"packages"key, reading new"integrations"key, merging both keys, precedence when both exist, and verifying only"integrations"is written on save.Before / After:
Checklist
<remarks />and<code />elements on your triple slash comments?aspire.devissue:🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.