-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IgnoreDuringEqualsAttribute not accessible at runtime #175
Comments
@SebastianStehle did you read the issue template https://github.com/Fody/.github/blob/master/.github/ISSUE_TEMPLATE/bug_report.md ? |
You mean the "Minimal Repro"? Yeah, I was lazy, sorry. Here is the repro: https://github.com/SebastianStehle/FodyTest The problem is when the attributes are used in a base class that do not have the Equals attribute. |
My solution is to add
|
From a quick glance at the source code, it looks like this weaver won't remove the attributes on classes which don't have an Note that |
The behavior makes sense, it is just the remove that it is the problem. Because the IgnoreDuringEqualsAttribute works as expected :) |
i will add a compile error that explains the problem |
Almost everything works great, but I have a class that is also json serialized.
The serializer throws the following exception:
When I open this type in ILSpy, I see that the IgnoreDuringEqualsAttribute is there but I cannot follow it to the implementation, so somehow the IL is corrupt.
Btw: I am using .NET Core 3
The text was updated successfully, but these errors were encountered: