destructurama / attributed

Use attributes to control how complex types are logged to Serilog.
Apache License 2.0
263 stars 32 forks source link

Extension method `UsingAttributes(x => x.IgnoreNullProperties = true)` not callable in .NET 8 class library project #92

Closed MelvLee closed 7 months ago

MelvLee commented 8 months ago

I want to use the 'Ignore null properties' functionality in a .NET 8 class library project, however I cannot use the UsingAttributes(x => x.IgnoreNullProperties = true) extension method. I can only call the UsingAttributes() variant. The NotLoggedIfNull attribute is also not available for use.

sungam3r commented 8 months ago

изображение

This code was not released yet. Will be published in v3.2 coming days. @nblumhardt OK?

nblumhardt commented 8 months ago

Seems like a freshen-up is overdue; thanks @sungam3r :+1:

sungam3r commented 7 months ago

https://github.com/destructurama/attributed/releases/tag/3.2.0 https://www.nuget.org/packages/Destructurama.Attributed/3.2.0

MelvLee commented 7 months ago

I have tried it and it works like a charm. Thank you