vkhorikov / CSharpFunctionalExtensions

Functional extensions for C#

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Suggestion: split ValueObject to seperate nuget in order to safely trimming

NotAsea opened this issue · comments

While Result and Maybe are lightweight and use no reflection which mean PublishAot and PublishTrim friendly in Net6+ project. However it looks like your ValueObject implementation still use System.Reflection which is subject to error when trimming. There's a lot of ValueObject source generator for this kind of situation, so i suggest you split ValueObject into another nuget, for user in Net6+ can publish AOT safely and less find work around

closing as i found alternative lib.
Solution: use dunet to build your own result and option type