Skip to content

Conversation

@roji
Copy link
Member

@roji roji commented Nov 4, 2021

And add basic Native AOT check to CI

Fixes #4057

@roji roji requested a review from vonzshik as a code owner November 4, 2021 10:18
@roji roji force-pushed the AOT branch 4 times, most recently from 6035660 to 7917c64 Compare November 4, 2021 10:47
@roji roji enabled auto-merge (squash) November 4, 2021 10:50
@roji roji merged commit fa726b6 into npgsql:main Nov 4, 2021
@roji roji deleted the AOT branch November 4, 2021 10:56
@roji
Copy link
Member Author

roji commented Nov 4, 2021

Before this PR, trying to publish with Native AOT would generate a lot of these:

ILC : AOT analysis warning IL1005: Npgsql.Internal.TypeHandlers.MultirangeHandler`1<NpgsqlRange`1<NpgsqlRange`1<NpgsqlRange`1<NpgsqlRange`1<__Canon>>>>>.ValidateAndGetLengthMultirange<NpgsqlRange`1<NpgsqlRange`1<NpgsqlRange`1<NpgsqlRange`1<__Canon>>>>>(IList`1<NpgsqlRange`1<NpgsqlR
ange`1<NpgsqlRange`1<NpgsqlRange`1<NpgsqlRange`1<__Canon>>>>>>,NpgsqlLengthCache&,NpgsqlParameter): Method will always throw because: Failed to load type 'Npgsql.Internal.TypeHandling.NpgsqlTypeHandler' from assembly 'Npgsql, Version=6.0.0.0, Culture=neutral, PublicKeyToken=5d8b90d
52f46fda7' [/home/roji/projects/test/Test.csproj]                                                                                                                                                                                                                                         

After this PR, those are gone. /cc @MichalStrehovsky

We'll be adding a basic CI check for Native AOT after 6.0 ships, see #4096.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Generic infinite recursion in NativeAOT (again)

2 participants