Skip to content

build: stop exposing internals to production packages - #566

Merged
glennawatson merged 1 commit into
mainfrom
chore/remove-production-internals
Nov 30, 2026
Merged

glennawatson merged 1 commit into
mainfrom
chore/remove-production-internals

Conversation

@glennawatson

Copy link
Copy Markdown
Contributor

What changed

  • ReactiveUI.Binding and ReactiveUI.Binding.Reactive no longer grant InternalsVisibleTo to the platform packages (Wpf, WinForms, Maui, Avalonia and Uno, plain and Reactive). The Roslyn 4.8, 4.14 and 5.0 generator builds no longer grant it to ReactiveUI.SourceGenerators.Analyzers.CodeFixes. Only test projects see internals.
  • The platform packages used ArgumentExceptionHelper and the nullability, trimming and IsExternalInit polyfill attributes from ReactiveUI.Binding.Shared. Each package now compiles the files it needs with <Compile Include Link>. None of them holds state.
  • The code fixes used no internal member, so they need no linked source.
  • The PublicAPI baselines drop the InternalsVisibleTo assembly attribute lines. No type or member changes.

Verification

  • dotnet build ReactiveUI.SourceGenerators.slnx on Linux and on Windows (every target framework): 0 errors.
  • dotnet test --solution ReactiveUI.SourceGenerators.slnx: 14,538 passed, 0 failed.

- Remove the InternalsVisibleTo grants from ReactiveUI.Binding to the platform packages and from the generators to the code fixes.
- Compile the stateless helpers and polyfills the platform packages use into each of them with linked sources.
@sonarqubecloud

Copy link
Copy Markdown

@glennawatson
glennawatson merged commit fc3bfd7 into main Nov 30, 2026
25 checks passed
@codecov

codecov Bot commented Nov 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.09%. Comparing base (c5e796d) to head (d2c8d8a).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #566   +/-   ##
=======================================
  Coverage   99.09%   99.09%           
=======================================
  Files         487      487           
  Lines       19275    19275           
  Branches     2903     2903           
=======================================
  Hits        19100    19100           
  Misses        175      175           

☔ 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.

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