notanaverageman / Bindables

Bindables converts your auto properties into Wpf dependency or attached properties.
MIT License
52 stars 9 forks source link

Code generation not worked #19

Closed Int32Overflow closed 5 years ago

Int32Overflow commented 5 years ago

The decompiled source code still contains the attribute [DependencyProperty] and no DependencyProperty was created automatically. I'm using the latest version without Fody and so I didn't create "FodyWeavers.xml". I didn't see any messages while building.

What have I done wrong? Thank you very much in advance.

Screenshot from IlSpy: grafik

I'm using:

notanaverageman commented 5 years ago

Did you add <Bindables /> to FodyWeavers.xml?

Int32Overflow commented 5 years ago

@yusuf-gunaydin Do I still need the FodyWeavers.xml even if no Fody is used anymore? This is confusing....

notanaverageman commented 5 years ago

This project is a plugin for Fody. So you have to use Fody.

Int32Overflow commented 5 years ago

Okay. Because there are no Fody dependencies in the nuget-package. I got it wrong. I thought you already switched to Roslyn.

Which fody-version should I use?

Int32Overflow commented 5 years ago

Thank you for your fast response 👍

Int32Overflow commented 5 years ago

Now it works perfekt 👍 Thank you very much. Sorry for my stupidity...

notanaverageman commented 5 years ago

It should be Fody 4.x.

There must be a problem with NuGet package then. But, I don't think I will spend time fixing it since I am already planning to switch to Roslyn anyways.