ReactiveUI icon indicating copy to clipboard operation
ReactiveUI copied to clipboard

[Bug]: CA1416: Validate platform compatibility for RaisePropertyChanged being reported in .Net Maui project

Open JRosanowski opened this issue 3 years ago • 3 comments

Describe the bug 🐞

The warning in the screenshot below is being displayed but there seems to be no issue with the method on a Api 21 emulator. Is it possible to resolve this warning somehow?

Step to reproduce

  1. Open attached project in Visual Studio 2022 17.3
  2. Open ViewModel.cs
  3. Error will be visible under the call to RaisePropertyChanged

Reproduction repository

https://github.com/reactiveui/ReactiveUI

Expected behavior

No warning.

Screenshots 🖼️

RaisePropertyChanged

IDE

Visual Studio 2022

Operating system

Windows

Version

No response

Device

No response

ReactiveUI Version

18.3.1

Additional information ℹ️

MauiApp1.zip

JRosanowski avatar Aug 18 '22 02:08 JRosanowski

Please see #3315 and set your TargetPlatformMinVersion in your csproj

ChrisPulman avatar Aug 18 '22 07:08 ChrisPulman

You most likely need to set <TargetPlatformMinVersion Condition="'$(TargetFramework)' == 'net6.0-android'">31.0</TargetPlatformMinVersion>

ChrisPulman avatar Aug 18 '22 07:08 ChrisPulman

When I tried this it didn't work as intended. I dont remember the details but it didn't play nicely with SupportedOSPlatformVersion I think.

J-Swift avatar Aug 18 '22 12:08 J-Swift

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Jul 27 '23 00:07 github-actions[bot]