question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Updating to the newest version is now causing SuppressPropertyChangedWarnings in an existing codebase

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
SimonCroppcommented, Mar 9, 2020

@distantcam happy to accept a pr that suppresses the warnings via the xml config

0reactions
distantcamcommented, Mar 11, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found