Suggestion: split ValueObject to seperate nuget in order to safely trimming
NotAsea opened this issue · comments
Huu Hai commented
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