dotnetcore / dotnetcore/FreeSql
Native AOT publish hangs at IlcCompile when FreeSql.Provider.QuestDb brings in old Npgsql (5.0.18)
- Dominant language
- C#
- Stars
- 4.4k
- Forks
- 910
- PR merge metrics
- No merged PRs in 30d
Description
#### 问题描述及重现代码:
Using FreeSql.Provider.QuestDb in a .NET 9.0 ASP.NET Core project with Native AOT publish and `` causes the publish to hang indefinitely at the `IlcCompile` step, consuming excessive memory.
```xml
net9.0
true
true
```
1. `dotnet add package FreeSql.Repository --version 3.5.204`
2. `dotnet add package FreeSql.Provider.QuestDb --version 3.5.204`
3. Enable Native AOT and root Npgsql in the `.csproj` as shown above.
4. Run `dotnet publish -c Release -v diag` and observe hang at `IlcCompile`.
#### 数据库版本
Not applicable (QuestDB provider, no live database connection needed for repro).
#### 安装的Nuget包
* FreeSql.Repository v3.5.204
* FreeSql.Provider.QuestDb v3.5.204
* (Transient) Npgsql v5.0.18 pulled in by QuestDb provider, causing the issue
#### .net framework/. net core? 及具体版本
* .NET SDK 9.0.203 (`net9.0`)
* Target framework: .NET 9.0 (ASP.NET Core Web API)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.