Improve UnitsNet.Modular samples - #1722
Conversation
a13c16c to
a8c3211
Compare
a8c3211 to
a52e676
Compare
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1722 +/- ##
======================================
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:
|
|
Review outcome: Non-blocking findings This PR only touches the experimental/incubating Breaking changes ✅
New quantities or units ✅
Changes to generated code ✅
Code quality and MSBuild conventions
Potential bugs ✅
Performance ✅
Test coverage
Security concerns ✅
|
|
|
|
Summary
ConsumerOwnedwith a documented, solution-groupedSharedUnitsLibrarySampleProjectReferences,LocalPackages, andPublishedPackagesthrough the IDE solution-platform selectorMotivation
The previous samples mixed dependency sources into separate projects, used long or ambiguous names, and contained overlapping scenarios. This made it difficult to tell why each sample existed or to compare the same sample against source, locally packed, and published dependencies.
The new solution platforms keep
DebugandReleaseas build configurations while treating the dependency source as the IDE-selectable platform. Local package preparation runs once at solution level to avoid parallel pack races.Impact
In Rider or Visual Studio, contributors can select combinations such as
Debug | LocalPackagesfor the complete sample portfolio. Direct sample builds continue to default to project references. Outputs and restore state are isolated by dependency platform.Validation
dotnet build UnitsNet.Modular.slnx --configuration Release -p:Platform=ProjectReferencesdotnet build UnitsNet.Modular.slnx --configuration Release -p:Platform=LocalPackagesdotnet build UnitsNet.Modular.slnx --configuration Release -p:Platform=PublishedPackagesdotnet test UnitsNet.Modular.slnx --configuration Release -p:Platform=ProjectReferences— 116 tests passedgit diff --check