Closed PineCone5 closed 2 months ago
Thank you. As you found, JsonIncludeAtribute
is not valid on non-public properties in .Net 6 (and apparently also .Net 7.) I did not catch it because it does not throw a build error and it is valid on non-public properties in .Net 8.... which is where I have been working with Blazor JS the most.
I will get this fixed now, and check if I made this same mistake in any other places in the project.
Thank you for reporting this. 🚀
I found where this is mentioned. Adding for reference.
In .NET 6 and .NET 7, non-public properties aren't supported.
Fixed in version 2.5.7
Thanks for your help! I have updated the version I used, and the program works fine. Thanks!
Describe the bug According to the instructions, the following snippet is added to the 'Counter' component :
But when run it, get an error with the following message:
To Reproduce Steps to reproduce the behavior:
Expected behavior Follow the instructions to work properly.
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.