ReactiveUI
ReactiveUI copied to clipboard
[Bug]: CA1416: Validate platform compatibility for RaisePropertyChanged being reported in .Net Maui project
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
- Open attached project in Visual Studio 2022 17.3
- Open ViewModel.cs
- Error will be visible under the call to RaisePropertyChanged
Reproduction repository
https://github.com/reactiveui/ReactiveUI
Expected behavior
No warning.
Screenshots 🖼️

IDE
Visual Studio 2022
Operating system
Windows
Version
No response
Device
No response
ReactiveUI Version
18.3.1
Additional information ℹ️
Please see #3315 and set your TargetPlatformMinVersion in your csproj
You most likely need to set
<TargetPlatformMinVersion Condition="'$(TargetFramework)' == 'net6.0-android'">31.0</TargetPlatformMinVersion>
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.
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.