-
Notifications
You must be signed in to change notification settings - Fork 47
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
Will Configuration for a base class automatically apply to its derived classes? #609
Comments
Branch issues/fix/i609 created! |
Hey there @RashmiBK5 thank you for writing in and for reporting this. There should not be any breaking changes for minor versions so this appears to be a bug. I will look into this for you and see what happened. 👍 |
Alright I spent some time looking into this for you @RashmiBK5 and please do pardon my confusion as I didn't realize when 3.2.x was released as it was back in 2020. To be honest I am not sure how well I will be able to support you here. Nonetheless I did try to load your code with these versions, but there does not appear to be neither an If you are able to provide code that better illustrates the issue I can try seeing what I can do here. |
I have updated the code, could you please check. |
Thank you @RashmiBK5. I appreciate you creating a project. If you are further able to post it as a repository I would greatly appreciate it. I am not a fan of zips as they are a security consideration. |
code is available in
|
Thank you very much for that @RashmiBK5 and for your understanding. 🙏 Looking into this now for you. |
Alright @RashmiBK5 I see that IXmlConfiguration is a custom class but I unfortunately fail to see how you are configuring it. I tried using the code you initially reported, but it results in errors: Can you update the repository with the code you opened the ticket with? |
I have updated the Code, now you should be able to run the code https://github.com/RashmiBK5/ExtendedXML version 3.2.3
version 3.2.4 onwards
|
Thank you very much for your provided information @RashmiBK5. I have isolated this to #416 and while all the tests passed at the time, you're right here I should have put more thought into the change as technically it is breaking. What we need is some way of assigning the preferred member comparer, or maybe some other fix for this. I'll continue to think about it. |
Hi @RashmiBK5 unfortunately I have not been able to figure out a good solution for you, or at least one that I can incorporate into the codebase as a PR after a few hours of investigation. I've tried a few approaches but all of them result in broken tests. The class in question that is causing this issue is
I have several suggestions:
I wish I could assist more but unfortunately my time is limited these days. Please see #383 for more information. Please let me know of any further questions you may have and I will further assist you. |
Thanks a lot @Mike-E-angelo What should I do to get the fix as part of Nuget package. I want the fix to be added to version 3.7.6. And will the same fix be added to latest version as well? in future when we Upgrade to latest version, I will face same issue. |
Hi @RashmiBK5 thank you for your continued collaboration. Getting this into the official package is the tricky part, as when I attempted to do so I could not get all tests to pass. So the idea here is to submit a Pull Request that fixes this issue while ensuring all tests as written pass. I would then review it and if it looks OK, accept it and create a new NuGet package from there. If this is something you are interested in participating in, I can help/support you through the process. Please note that this might take some time as it has been a while since the last release and there are some considerations to account for, one of which is to generate a new publishing key on NuGet as the last one expired. |
even though I have ignored property at base class, when serializing DerivedClass the XML is still having Property1.
Also, I am upgrading from 3.2.3 to 3.2.7, is there a list of breaking changes available. I looked through the release note I could not find any specific details, could you please help.
Version :3.2.7
The text was updated successfully, but these errors were encountered: