-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Open
Milestone
Description
Description:
Unable to unload AssemblyLoadContext after creating a Microsoft.Data.Sqlite.SqliteConnection
Reproduction Steps:
- Take the unloading solution from https://github.com/dotnet/samples/tree/main/core/tutorials/Unloading
- Upgrade the solution targeting Net6.0
- Add EnableDynamicLoading at true in Plugin.csproj
- Implement LoadUnmanagedDll to HostAssemblyLoadContext
- Add nuget reference to Microsoft.Data.Sqlite 6.0.2 in project Plugin
- In PluginClass constructor add: using var connection = new Microsoft.Data.Sqlite.SqliteConnection();
- All those steps are already implemented in zipped project
Unloading_MicrosoftDataSqlite.zip
Microsoft.Data.Sqlite version: 6.0.2
Target framework: Net 6.0
Operating system: Windows 10
Could be related with dotnet/runtime#65781
Reactions are currently unavailable