Describe the bug
After upgrading a Xamarin.Forms application to .NET MAUI, .xaml view/page files are reset to None build action instead of the MauiXaml option necessary for containing project(s) to build successfully. This is a pretty basic migration action that involves a ton of manual effort for larger apps if not automated.
I verified this is necessary by creating a new .NET MAUI templated project with sample content and verified setting the MauiXaml build action is necessary for all XAML view/page files.
To Reproduce
Run the .NET Upgrade Assistant on a Xamarin.Forms project with one or more XAML pages.
Exceptions (if any)
N/A
Further technical details
Win11 23H2 22631.5699 (64-bit)
SDK versions:
8.0.315 [C:\Program Files\dotnet\sdk]
8.0.412 [C:\Program Files\dotnet\sdk]
9.0.302 [C:\Program Files\dotnet\sdk]
Upgrade Assistant (VS extension) version: 1.0.518.26217
Describe the bug
After upgrading a Xamarin.Forms application to .NET MAUI,
.xamlview/page files are reset toNonebuild action instead of theMauiXamloption necessary for containing project(s) to build successfully. This is a pretty basic migration action that involves a ton of manual effort for larger apps if not automated.I verified this is necessary by creating a new .NET MAUI templated project with sample content and verified setting the
MauiXamlbuild action is necessary for all XAML view/page files.To Reproduce
Run the .NET Upgrade Assistant on a Xamarin.Forms project with one or more XAML pages.
Exceptions (if any)
N/A
Further technical details
Win11 23H2 22631.5699 (64-bit)
SDK versions:
8.0.315 [C:\Program Files\dotnet\sdk]
8.0.412 [C:\Program Files\dotnet\sdk]
9.0.302 [C:\Program Files\dotnet\sdk]
Upgrade Assistant (VS extension) version: 1.0.518.26217