Repository navigation
Update Aspire branding and links in MAUI template - #37850
Conversation
Refresh the editable English template metadata and point Aspire documentation and notices at their current canonical locations. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 37850Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 37850" |
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
|
Hey there @@IEvangelist! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
|
Hey there @IEvangelist! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
There was a problem hiding this comment.
Pull request overview
This PR updates the MAUI Aspire Service Defaults template metadata and in-template references to reflect current Aspire branding and to point users to the current Aspire documentation and notices locations.
Changes:
- Updated the Service Defaults guidance link in the template’s
Extensions.cscomment to point to the Aspire site documentation. - Updated the template’s
thirdPartyNoticesURL to reference the currentmicrosoft/aspirerepository notice file. - Updated the editable English localization source (
templatestrings.en.json) to use “Aspire” instead of “.NET Aspire”.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/Templates/src/templates/maui-aspire-servicedefaults/Extensions.cs | Updates the “learn more” documentation link to aspire.dev. |
| src/Templates/src/templates/maui-aspire-servicedefaults/.template.config/template.json | Updates thirdPartyNotices to the current notice file location in microsoft/aspire. |
| src/Templates/src/templates/maui-aspire-servicedefaults/.template.config/localize/templatestrings.en.json | Updates editable English localization strings to current Aspire naming. |
<!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Description of Change A merge into `net11.0` retained the Aspire branding/link updates from #37850, but unintentionally reverted the version-specific template identity and precedence from commit `120af7a6bb`. With both the .NET 10 and .NET 11 MAUI template packs installed, both ServiceDefaults templates then advertised the same `8.0` identity and `9000` precedence. `dotnet new maui-aspire-servicedefaults` selected the stale .NET 10 template, which generated a project without `UseMauiCore`; that left `$(MauiVersion)` empty and restore failed with `NU1015` for `Microsoft.Maui.Core`. This restores the pack-time target-framework tokens so the .NET 11 package emits identity `MauiAspire.ServiceDefaults.CSharp.11.0` and precedence `11000`. The existing integration test remains end-to-end and now explicitly verifies the generated project name, `net11.0` target, `UseMauiCore`, the `Microsoft.Maui.Core` version expression, successful restore, the resolved package version in `project.assets.json`, and a successful build. ### Issues Fixed Fixes the `net11.0` base CI regression reproduced in `maui-pr` builds 1570902, 1570903, 1570904, and 1570953. ### Validation - Reproduced all 3 test parameterizations failing locally with the stale .NET 10 template, missing `UseMauiCore`, and `NU1015`. - Built and packed the product, installed the local workload, and verified the packed template emits identity `11.0` / precedence `11000`. - Re-ran all 3 `SimpleTemplateTest.AspireServiceDefaultsTemplateUsesCorrectProjectName` parameterizations on macOS: 3 passed, 0 failed. - Verified restore resolves `Microsoft.Maui.Core` to `11.0.0-dev` before the generated project build. - Ran the full macOS `Build` integration category: 61 passed, 2 skipped, 0 failed. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Note
Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!
Description of Change
This updates the MAUI Aspire Service Defaults template to:
Aspireproduct name in the editable English localization source;aspire.dev;microsoft/aspirerepository.PR #32626 corrected the main template manifest but intentionally reverted localization files. This follow-up updates
templatestrings.en.json, the editable source of the English localization metadata. Generatedtemplatestrings.json, translated JSON files, andloc/**.lclfiles remain unchanged so the repository's OneLocBuild workflow can generate the localization follow-up.Issues Fixed
Follow-up to #32624 and #32626.
Validation
Microsoft.Maui.Templates.csproj.Aspire..NET Aspirereferences or legacy Aspire links remain.