Skip to content

maui-samples code snippets updated - update references in native-mobile-backend.md#37139

Merged
wadepickett merged 4 commits into
mainfrom
copilot/update-maui-code-sample-links
May 13, 2026
Merged

maui-samples code snippets updated - update references in native-mobile-backend.md#37139
wadepickett merged 4 commits into
mainfrom
copilot/update-maui-code-sample-links

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 12, 2026

Fixes #37138

The TodoREST sample was moved from 9.0/ to 10.0/ in dotnet/maui-samples, breaking all 11 code snippet references in the article.

  • Updated all :::code source paths from ~/../maui-samples/9.0/WebServices/TodoREST/ to ~/../maui-samples/10.0/WebServices/TodoREST/
  • Updated corresponding GitHub URL links (tree/main/9.0/..., blob/main/9.0/..., pinned commit hash link) to 10.0/
  • Updated ms.date

Internal previews

📄 File 🔗 Preview link
aspnetcore/mobile/native-mobile-backend.md Create backend services for native mobile apps with ASP.NET Core

…0 to 10.0

Fixes #35346

The TodoREST sample code was moved from 9.0/ to 10.0/ in the
dotnet/maui-samples repository, causing all code snippet references
in native-mobile-backend.md to break. Updated all ~/../maui-samples/
code snippet paths and GitHub URL links from 9.0 to 10.0.

Agent-Logs-Url: https://github.com/dotnet/AspNetCore.Docs/sessions/5c8886e1-8851-4708-a8ac-5f3a48ce1839

Co-authored-by: wadepickett <10985336+wadepickett@users.noreply.github.com>
@wadepickett wadepickett mentioned this pull request May 12, 2026
Copilot AI changed the title [WIP] Update Maui code sample links to absolute URLs Fix broken maui-samples code snippet references in native-mobile-backend.md May 12, 2026
Copilot AI requested a review from wadepickett May 12, 2026 16:28
@wadepickett wadepickett changed the title Fix broken maui-samples code snippet references in native-mobile-backend.md maui-samples code snippets moved - update references in native-mobile-backend.md May 12, 2026
@wadepickett wadepickett changed the title maui-samples code snippets moved - update references in native-mobile-backend.md maui-samples code snippets updated - update references in native-mobile-backend.md May 12, 2026
@wadepickett
Copy link
Copy Markdown
Contributor

@copilot,

Some of the code links you updated are incorrect.

For example, this is incorrect:
https://github.com/dotnet/maui-samples/blob/52607dc4ebf19a51ce59694b57e704b67600f69b/10.0/WebServices/TodoREST/TodoREST/Constants.cs#L6

The correct link instead should be:
https://github.com/dotnet/maui-samples/tree/main/10.0/WebServices/TodoREST/TodoREST/Constants.cs#L6

Please reverify all code links you updated in this PR and fix accordingly.

Replace the pinned commit hash (52607dc4...) in the Constants.cs link
with blob/main, since the old commit doesn't contain 10.0/ paths.

Agent-Logs-Url: https://github.com/dotnet/AspNetCore.Docs/sessions/d6ed9e02-7265-4725-bb90-ed3ccf0f04ca

Co-authored-by: wadepickett <10985336+wadepickett@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented May 12, 2026

@copilot,

Some of the code links you updated are incorrect.
...

Fixed in 68044a2. The pinned commit hash 52607dc4... was from the old 9.0 directory structure and doesn't contain 10.0/ paths. Replaced it with blob/main to point to the current file. All other links were already using tree/main or blob/main and are correct.

@wadepickett wadepickett marked this pull request as ready for review May 12, 2026 18:20
@wadepickett wadepickett requested a review from tdykstra May 12, 2026 19:20
Copy link
Copy Markdown
Contributor

@wadepickett wadepickett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved after I made correctons.

@wadepickett wadepickett merged commit 5d50f1c into main May 13, 2026
4 checks passed
@wadepickett wadepickett deleted the copilot/update-maui-code-sample-links branch May 13, 2026 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Native-mobile-backend: Maui code sample moved

3 participants