Light.GuardClauses now explicitly targets .NET 8 and enables IsAotCompatible for it. I had to rework the EnumInfo<T> class and add the DynamicallyAccessedMembersAttribute to some parameters of the type assertions (but these shouldn't be used in AOT scenarios anyway).
We should only merge this PR once .NET 8 is released.
Fixes https://github.com/feO2x/Light.GuardClauses/issues/88
Light.GuardClauses now explicitly targets .NET 8 and enables
IsAotCompatible
for it. I had to rework theEnumInfo<T>
class and add theDynamicallyAccessedMembersAttribute
to some parameters of the type assertions (but these shouldn't be used in AOT scenarios anyway).We should only merge this PR once .NET 8 is released.