CsWinRT
CsWinRT copied to clipboard
[Warnings] Unnecessary warnings when using custom interface that requires INotifyPropertyChanged.
trafficstars
Describe the bug
I'm seeing extra CA2256 warnings when building projections, which seems to be related to the INotifyPropertyChanged which my IAppState interface requires.
It is not causing any issues but it is verbose creating unnecessary warnings, afik, in the build.
..\bin\x64\Debug\MyCsProjection\Lightbox.cs(25116,31,25116,40): warning CA2256: Type 'ABI.Lightbox.IAppState' has the 'DynamicInterfaceCastableImplementationAttribute' applied to it but does not provide an implementation of all interface members defined in inherited interfaces (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2256)
Projected code:
Runtimeclass:
To Reproduce write a runtimeclass and interface as:
interface IMyInterface requires WUXD.INotifyPropertyChanged
{ }
runtimeclass MyType : IMyInterface
{ }
Expected behavior A better warning with proper description or not seen any warnings if not a real issue.
Version Info
- CsWinRT: 2.0.8
- WinAppSdk: 1.5.6