GithubHelp home page GithubHelp logo

Comments (2)

SimonCropp avatar SimonCropp commented on May 19, 2024

Unfortunately this is the expected behaviour

The reason is that from a child class you cant call the event on the base class. so there is no valid code I can inject into the child class to perform OnPropertyChanged or OnPropertyChanging. Since you dont have fody enabled for the project containing the base class I cant inject OnPropertyChanged in those classes.

This is why there is a warning

Warning 4   Fody/PropertyChanged.Fody:  Could not derive or inject 'OnPropertyChanged,    
NotifyOfPropertyChange, RaisePropertyChanged, NotifyPropertyChanged, NotifyChanged' into 'ViewModel2'. It is 
possible you are inheriting from a base class and have not correctly set 'EventInvokerNames' or you are using a 
explicit PropertyChanged event and the event field is not visible to this instance. Please either correct
'EventInvokerNames' or implement your own EventInvoker on this class. No derived types will be processed. If you
want to suppress this message place a [DoNotNotifyAttribute] on ViewModel2. TestFody

As for Text in BaseViewModel3 not being processed. Well you have not turned on fody for the project Fody has no visibility of it.

So... great repro but it is not something i can fix.

from fody.

yanglee avatar yanglee commented on May 19, 2024

Ah, sorry didn't notice the warning message. Thanks for your detailed replay.

Cheers

from fody.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.