Skip to content

Conversation

@yurkinh
Copy link

@yurkinh yurkinh commented Dec 8, 2025

  • Updated project files for .NET 10 compatibility
  • Migrated to slnx
  • Enabled source generations for the sample project
  • cleanup

Copilot AI review requested due to automatic review settings December 8, 2025 17:57
@yurkinh yurkinh changed the title Net10 NET 10 Update Dec 8, 2025
Copy link

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 migrates the FastPopups library and sample application from .NET 9 to .NET 10, updates the solution format from .sln to .slnx, and includes code cleanup.

  • Migration of all target frameworks from net9.0 to net10.0 across platforms
  • Update of MAUI package versions from 9.x to 10.x
  • Migration from traditional .sln to modern .slnx solution format
  • Cleanup of unused code and deprecated styles

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/Sample/SampleApp.csproj Updated target frameworks to net10.0 and package references to version 10.x; enabled XAML source generation
src/Lib/FastPopups.csproj Updated target frameworks to net10.0, added EnableWindowsTargeting property, and updated package references to version 10.x
src/Sample/Views/NavigationStackPopup.xaml.cs Changed from Application.Current?.MainPage to Application.Current?.Windows[0].Page to align with MAUI API changes
src/Sample/Resources/Styles/Styles.xaml Removed deprecated Frame and ListView style definitions
src/Lib/Platforms/Android/MauiPopup.android.cs Commented out unused variable and removed dead code
src/FastPopups.slnx Added new XML-based solution format file
src/FastPopups.sln Removed legacy solution file

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


// Get the current page to show the popup
var currentPage = Application.Current?.MainPage;
var currentPage = Application.Current?.Windows[0].Page;
Copy link

Copilot AI Dec 8, 2025

Choose a reason for hiding this comment

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

Accessing Application.Current?.Windows[0] without null or bounds checking could throw an IndexOutOfRangeException if the Windows collection is empty. Consider adding a check to ensure the collection has at least one element before accessing index 0:

var currentPage = Application.Current?.Windows.FirstOrDefault()?.Page;

Copilot uses AI. Check for mistakes.
<Setter Property="CornerRadius" Value="8" />
<Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Black}}" />
</Style>
</Style>
Copy link

Copilot AI Dec 8, 2025

Choose a reason for hiding this comment

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

Trailing whitespace detected at the end of this line. Consider removing it for cleaner code formatting.

Suggested change
</Style>
</Style>

Copilot uses AI. Check for mistakes.
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.

1 participant