dotnet / upgrade-assistant

A tool to assist developers in upgrading .NET Framework applications to .NET 6 and beyond
MIT License
1.1k stars 163 forks source link

More Xamarin to MAUI helpers #1534

Open davidortinau opened 9 months ago

davidortinau commented 9 months ago

Can we get a lightbulb to change:

<OnPlatform x:Key="LittleSize" x:TypeArguments="x:Double" iOS="9" Android="9" />

with error:

Severity    Code    Description Project File    Line    Suppression State
Error   XLS0413 The property 'iOS' was not found in type 'OnPlatform`1'.    XamarinTV   C:\Users\daortin\source\repos\app-xamarintv\XamarinTV\Styles\DefaultTheme.xaml  106 

to:

<OnPlatform x:Key="LittleSize" x:TypeArguments="x:Double">
    <On Platform="iOS" Value="9"/>
    <On Platform="Android" Value="9"/>
</OnPlatform>

Can we fix these to update to WinUI?

{OnPlatform Default=18, UWP=8}
Severity    Code    Description Project File    Line    Suppression State
Warning XLS1111 'UWP' is obsolete: 'Use WinUI instead.'.    XamarinTV   C:\Users\daortin\source\repos\app-xamarintv\XamarinTV\Styles\DefaultTheme.xaml  74  
mgoertz-msft commented 9 months ago

Adding @etvorun for updating OnPlatform UWP => WinUI. Should just be a matter of adding a new mapping.