feO2x / Light.GuardClauses

A lightweight .NET library for expressive Guard Clauses.
MIT License
85 stars 8 forks source link

Native AOT #92

Closed feO2x closed 11 months ago

feO2x commented 1 year ago

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 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.