Fody and weaving without a reference to PropertyChanged.Fody.dll issue
See original GitHub issue@SimonCropp: Following this discussion (https://github.com/Fody/PropertyChanged/issues/14#issuecomment-19846970), I’ve tried it. And what I’ve done:
- Remove reference to PropertyChanged.Fody package
- Add PropertyChanged attributes as described in here (https://github.com/Fody/PropertyChanged/wiki/WeavingWithoutAddingAReference)
- Have FodyWeavers.xml configured as follow:
<?xml version="1.0" encoding="utf-8" ?>
<Weavers>
</Weavers>
However, I encountered the following error:
Error/10/Fody: You don’t seem to have configured any weavers. Try adding a Fody nuget package to your project. Have a look here http://nuget.org/packages?q=fody for the list of available packages.
- If I change FodyWeavers.xml to below:
<?xml version="1.0" encoding="utf-8"?>
<Weavers>
<PropertyChanged />
</Weavers>
I got the following error:
Error/12/Fody: Could not find a weaver named ‘PropertyChanged’. If you have nuget package restore turned on you probably need to do a build to download the weavers. Alternatively you may have added a weaver to your ‘FodyWeavers.xml’ and forgot to add the appropriate nuget package. Perhaps you need to run ‘Install-Package PropertyChanged.Fody’. This url may provide more information http://nuget.org/packages/PropertyChanged.Fody/ .
It seems there’s a conflicting issue. Or I might have been missing something.
So, how am I supposed to resolve this issue?
Thanks.
Issue Analytics
- State:
- Created 10 years ago
- Comments:13 (5 by maintainers)
it removes the reference to the attribute assembly so you dont need to deploy that file
OK. Thanks, Simon.