Skip to content

Code review fixes and .NET 10 upgrade#1

Merged
lonecat13 merged 4 commits intomainfrom
dev/tool
Feb 17, 2026
Merged

Code review fixes and .NET 10 upgrade#1
lonecat13 merged 4 commits intomainfrom
dev/tool

Conversation

@lonecat13
Copy link
Copy Markdown
Collaborator

Summary

This PR addresses all issues identified in the code review and upgrades the project to .NET 10.

Code Review Fixes

  • Remove unused constant: Removed MaxRemoveIterations from CodePostProcessor.cs
  • Defensive check: Added check for single-character parts in PascalCasePropertyNameGenerator
  • Dynamic solution finder: Improved JetBrainsCleanupRunner to walk up directories to find .sln file instead of hardcoded 3-level traversal
  • Explicit package reference: Added Microsoft.Extensions.Logging.Abstractions to test project
  • Immutable collections: Changed HashSet<string> to IReadOnlySet<string> in SchemaAnalysisResult for better API design
  • Better error messages: Added schema counts to error messages for easier debugging
  • ConfigureAwait(false): Added to all async calls in library code for better performance in non-UI contexts

.NET 10 Upgrade

  • Updated TargetFramework from net8.0 to net10.0
  • Updated CI and Release workflows to use dotnet-version: 10.0.x
  • Aligns with existing .NET 10 package dependencies (Microsoft.Extensions.Logging.*)

Testing

  • All 54 tests passing ✅
  • Build successful on .NET 10 ✅

- Remove unused MaxRemoveIterations constant from CodePostProcessor
- Add defensive check for single-character parts in PascalCasePropertyNameGenerator
- Improve JetBrainsCleanupRunner to dynamically find solution directory
- Add explicit Microsoft.Extensions.Logging.Abstractions package reference to test project
- Change HashSet<string> to IReadOnlySet<string> in SchemaAnalysisResult for immutability
- Improve error messages with actual schema counts for better debugging
- Add ConfigureAwait(false) to all async calls in library code
- Update TargetFramework from net8.0 to net10.0
- Update CI and Release workflows to use dotnet-version 10.0.x
- Aligns with existing .NET 10 package dependencies
- Push nupkg to Magnet/Engineering feed during GitHub Release
- Requires AZURE_ARTIFACTS_PAT secret to be configured
- Fix Azure Artifacts auth: use PAT directly instead of env var
- Add trailing newline to DotSchema.Tests.csproj
- Fix single-char edge case in SchemaAnalyzer.ExtractInlineTypeHashes
@lonecat13 lonecat13 merged commit b33ec4f into main Feb 17, 2026
1 check passed
@lonecat13 lonecat13 deleted the dev/tool branch February 17, 2026 22:45
lonecat13 added a commit that referenced this pull request Mar 24, 2026
Code review fixes and .NET 10 upgrade
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.

2 participants