Skip to content

Xamarin.Forms upgrade does not set MauiXaml build action #1650

@ahoke-cr

Description

@ahoke-cr

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions