Updating to the newest version is now causing SuppressPropertyChangedWarnings in an existing codebase
See original GitHub issueI upgraded a project from version 3.0.1
to 3.2.6
and suddenly I’m getting a lot of this new error.
warning : Fody/PropertyChanged: Type Test does not contain a [NAME] property with an injected change notification, and therefore the On[NAME]Changed method will not be called. You can suppress this warning with [SuppressPropertyChangedWarnings].
There’s a lot of places where we use a OnXXXChanged
name without it refering to a specific property.
It would be nice to be able to turn this off at an assembly level, or in a config, rather than having to apply the attribute to every class.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@distantcam happy to accept a pr that suppresses the warnings via the xml config
Turns out there’s an undocumented
SuppressWarnings
config that can turn off the error. I’ve updated the config schema as part of the PR.