Skip to content

Fix DBF field metadata for NativeAOT consumers - #280

Merged
PrzemyslawKlys merged 1 commit into
masterfrom
fix/dbf-trimming-schemas
Oct 10, 2026
Merged

PrzemyslawKlys merged 1 commit into
masterfrom
fix/dbf-trimming-schemas

Conversation

@PrzemyslawKlys

Copy link
Copy Markdown
Member

DBAClientX.Dbf consumers fail NativeAOT publication with IL2093 and IL2111. This change carries the inherited DbDataReader.GetFieldType metadata contract through the DBF scalar-type map and column schema, and scopes the linker suppression to the schema table's use of Type values as data. The .NET 8 and .NET 10 targets enable the SDK trim/AOT analyzers with warnings treated as errors.

Validation: all 28 DBF tests pass on each runtime. Fully rooted macOS arm64 NativeAOT builds run on .NET 8 and .NET 10; schema types and typed rows from the independent dBase, FoxPro and Visual FoxPro fixtures match managed execution. The unsigned three-target package contains the modern trimming metadata. A separate packed OfficeIMO Reader consumer also publishes and runs under NativeAOT using the fixed owner package.

OfficeIMO #3001 consumes this codec through its DBF Reader adapter. Publish a new DBAClientX.Dbf version containing this fix after merge, then update that consumer's public pin before rerunning its NativeAOT release gates.

@codecov

codecov Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 55.88%. Comparing base (755d371) to head (665ee2c).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #280      +/-   ##
==========================================
- Coverage   55.89%   55.88%   -0.01%     
==========================================
  Files         447      447              
  Lines       31389    31389              
  Branches     6265     6265              
==========================================
- Hits        17545    17542       -3     
- Misses      11898    11900       +2     
- Partials     1946     1947       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@PrzemyslawKlys
PrzemyslawKlys merged commit 099fa56 into master Oct 10, 2026
20 checks passed
@PrzemyslawKlys
PrzemyslawKlys deleted the fix/dbf-trimming-schemas branch October 10, 2026 17:29
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.

1 participant