First, check if you have a file called FodyWeavers.xml at the root of the .NET Standard library project. If you do, make sure it looks like the XML code shown next. If you can't find it, follow these two simple steps to create it:
- In the root of the News project, create a new file called FodyWeavers.xml.
- Add the following code to the file:
<?xml version="1.0" encoding="utf-8"?>
<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
<PropertyChanged />
</Weavers>
Fody will read this file during the build process and execute the plugins that you have specified in this file. Since we only have one line (PropertyChanged), it will execute that plugin and magically implement INotifyPropertyChanged for us.
Let's move on and create our first ViewModel.