Improve UnitsNet.Modular onboarding - #1717
Conversation
ReviewScope note: this PR touches only Breaking changesNone. This is docs, samples, a new test, and additive Generated code / generator changesThe 13 One gap: The hardcoded Style and conventions
Code quality / potential issues
Test coverageThe new SecurityNone identified — this is docs/samples/test-only content plus additive diagnostic metadata (a URL string), no new attack surface. Overall: solid, low-risk documentation/onboarding improvement. Main suggestion is tightening |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1717 +/- ##
======================================
Coverage 98% 98%
======================================
Files 514 514
Lines 24141 24141
======================================
Hits 23748 23748
Misses 393 393
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Motivation
Make the first UnitsNet.Modular experience discoverable from IntelliSense, compiler diagnostics, documentation, and a package-based sample that behaves like a real consumer.
Changes
UNMdiagnostic to the relevant README section and verify that coverage in a generator testValidation
dotnet test UnitsNet.Modular/UnitsNet.Modular.slnx --no-restore -m:1 -p:UnitsNetModularSampleUpdateLocalPackagesOnBuild=false(115 tests passed; runtime targets net8.0, net9.0, and net10.0)pwsh UnitsNet.Modular/Samples/UnitsNet.Modular.GettingStarted.Sample/run.ps1