Skip to content

Conversation

@mattleibow
Copy link
Member

@mattleibow mattleibow commented Oct 28, 2025

Description of Change

Issues Fixed

Release backport: #32255

Copilot AI review requested due to automatic review settings October 28, 2025 17:56
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR re-enables integration tests for MAUI templates with sample content that were previously disabled due to Community Toolkit compatibility issues with .NET 10. The changes unblock testing of the --sample-content flag now that the blocking issue has been resolved.

Key Changes

  • Re-enabled two test cases for MAUI templates with --sample-content flag in both Debug and Release configurations
  • Removed TODO comment explaining the temporary disablement

@rmarinho rmarinho added this to the .NET 10.0 GA milestone Oct 28, 2025
@mattleibow mattleibow closed this Oct 28, 2025
@mattleibow mattleibow deleted the dev/templates branch October 28, 2025 19:14
@mattleibow mattleibow restored the dev/templates branch October 28, 2025 19:14
@mattleibow mattleibow reopened this Oct 28, 2025
Comment on lines +22 to +23
<!-- https://github.com/CommunityToolkit/Maui/issues/2921 -->
<NoWarn>NU1608</NoWarn>
Copy link
Member Author

Choose a reason for hiding this comment

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

This avoids the nuget restore warnings:

warning NU1608: Detected package version outside of dependency constraint: 
    CommunityToolkit.Maui 11.1.1 requires Microsoft.Maui.Controls (>= 9.0.30 && < 10.0.0) 
    but version Microsoft.Maui.Controls 10.0.0 was resolved.
warning NU1608: Detected package version outside of dependency constraint:
    CommunityToolkit.Maui.Core 11.1.1 requires Microsoft.Maui.Core (>= 9.0.30 && < 10.0.0) 
    but version Microsoft.Maui.Core 10.0.0 was resolved.


<ItemGroup>
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
<PackageReference Include="Microsoft.Maui.Essentials" Version="$(MauiVersion)" />
Copy link
Member Author

Choose a reason for hiding this comment

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

This fixes

error NU1107: Version conflict detected for Microsoft.Maui.Essentials.
    Install/reference Microsoft.Maui.Essentials 10.0.0 directly to project MauiApp1 to resolve this issue. 
    MauiApp1 -> Microsoft.Maui.Controls 10.0.0 -> Microsoft.Maui.Controls.Core 10.0.0 -> Microsoft.Maui.Core 10.0.0 -> Microsoft.Maui.Essentials (>= 10.0.0) 
    MauiApp1 -> CommunityToolkit.Maui 11.1.1 -> CommunityToolkit.Maui.Core 11.1.1 -> Microsoft.Maui.Essentials (>= 9.0.30 && < 10.0.0).

Copy link
Member

Choose a reason for hiding this comment

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

Can you put this inside a block, so it's only there for --sample-content?

@mattleibow
Copy link
Member Author

/backport to release/10.0.1xx

@github-actions
Copy link
Contributor

Started backporting to release/10.0.1xx (link to workflow run)

@github-actions
Copy link
Contributor

@mattleibow backporting to release/10.0.1xx failed, the patch most likely resulted in conflicts. Please backport manually!

git am output
$ git am --3way --empty=keep --ignore-whitespace --keep-non-patch changes.patch

Applying: Improve templates for GA
Using index info to reconstruct a base tree...
M	src/TestUtils/src/Microsoft.Maui.IntegrationTests/SimpleTemplateTest.cs
Falling back to patching base and 3-way merge...
Auto-merging src/TestUtils/src/Microsoft.Maui.IntegrationTests/SimpleTemplateTest.cs
CONFLICT (content): Merge conflict in src/TestUtils/src/Microsoft.Maui.IntegrationTests/SimpleTemplateTest.cs
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0001 Improve templates for GA
Error: The process '/usr/bin/git' failed with exit code 128

Link to workflow output

@rmarinho
Copy link
Member

/backport to release/10.0.1xx

@github-actions
Copy link
Contributor

Started backporting to release/10.0.1xx (link to workflow run)

@github-actions
Copy link
Contributor

@rmarinho backporting to release/10.0.1xx failed, the patch most likely resulted in conflicts. Please backport manually!

git am output
$ git am --3way --empty=keep --ignore-whitespace --keep-non-patch changes.patch

Applying: Improve templates for GA
Using index info to reconstruct a base tree...
M	src/TestUtils/src/Microsoft.Maui.IntegrationTests/SimpleTemplateTest.cs
Falling back to patching base and 3-way merge...
Auto-merging src/TestUtils/src/Microsoft.Maui.IntegrationTests/SimpleTemplateTest.cs
CONFLICT (content): Merge conflict in src/TestUtils/src/Microsoft.Maui.IntegrationTests/SimpleTemplateTest.cs
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0001 Improve templates for GA
Error: The process '/usr/bin/git' failed with exit code 128

Link to workflow output

@rmarinho rmarinho changed the base branch from net10.0 to main October 29, 2025 10:32
@rmarinho rmarinho merged commit 27c65e9 into main Oct 29, 2025
153 of 163 checks passed
@rmarinho rmarinho deleted the dev/templates branch October 29, 2025 10:32
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.

[testing] Error in Testing related to ignoring sample tests for GA

4 participants