You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Public properties that must be assigned from NLog.config-file or appsettings.json-file should return their actual types, instead of interfaces. AOT does not work well with creating instances of generic-types.
Should also create API-unit-test to ensure one doesn't introduce new public properties, that uses interfaces.
Should also consider having fallback-logic for often used types like: ISet<string> or IList<string>.
The text was updated successfully, but these errors were encountered:
With #4036 then all non-nullable properties should return object, so the reflection logic can be changed to:
Use property-type when non-abstract
Use fallback logic with frequently used types: List<Layout> + List<string> + List<int> + HashSet<string> + HashSet<int>
Call property-getter and use type when non-null (and not readonly array)
Attempt to generate type from generic-interface-type (old logic that fails with AOT)
snakefoot
changed the title
Stop using IList and ISet but instead use List and HashSet for AOT
Handle IList and ISet for properties with AOT
Jan 2, 2025
Uh oh!
There was an error while loading. Please reload this page.
Public properties that must be assigned from
NLog.config
-file orappsettings.json
-file should return their actual types, instead of interfaces. AOT does not work well with creating instances of generic-types.Should also create API-unit-test to ensure one doesn't introduce new public properties, that uses interfaces.
Should also consider having fallback-logic for often used types like:
ISet<string>
orIList<string>
.The text was updated successfully, but these errors were encountered: