Skip to content

fix: update .NET settings in CI builds#564

Merged
natemcmaster merged 4 commits intomainfrom
fix/ci
Dec 27, 2025
Merged

fix: update .NET settings in CI builds#564
natemcmaster merged 4 commits intomainfrom
fix/ci

Conversation

@natemcmaster
Copy link
Owner

Trying to get CI working again

natemcmaster and others added 4 commits December 27, 2025 10:53
This fixes several issues introduced in f1a8455:

1. ReflectionHelper.IsEnumerableType - The implementation had bugs:
   - type.IsAssignableTo(typeof(IEnumerable<>)) doesn't work for open generics
   - type.GenericTypeArguments[1] was wrong (arrays have element at index 0)
   Rewrote to properly handle arrays and generic types.

2. DefaultHelpTextGenerator.ExtractNamesFromEnum - Used wrong variable
   name (wrappedType2 instead of wrappedEnumerableType).

3. ValueParserProvider.GetParserImpl - Added array type support so
   app.Option<SomeEnum[]>() works with MultipleValue options.

4. Test expectation - Fixed expected help text format for MultipleValue
   options (--enumOpt5 <E> not --enumOpt5[:<E>]).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The Hosting.CommandLine.Tests project was missing the Microsoft.NET.Test.Sdk
package, causing test host failures with Castle.Core dependency resolution
errors. Also moved package references from Directory.Build.targets into
individual project files and updated analyzer versions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@codecov
Copy link

codecov bot commented Dec 27, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.79%. Comparing base (60b4b9f) to head (e04f253).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #564   +/-   ##
=======================================
  Coverage   77.79%   77.79%           
=======================================
  Files         104      104           
  Lines        3319     3333   +14     
  Branches      722      728    +6     
=======================================
+ Hits         2582     2593   +11     
- Misses        578      580    +2     
- Partials      159      160    +1     

☔ View full report in Codecov by Sentry.
📢 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.

@natemcmaster natemcmaster merged commit dbb5709 into main Dec 27, 2025
7 of 8 checks passed
@natemcmaster natemcmaster deleted the fix/ci branch December 27, 2025 19:11
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