Skip to content

Fix project file filtering and solution command execution#24697

Merged
yekalkan merged 4 commits intorel-10.1from
SolutionFileModifier
Jan 22, 2026
Merged

Fix project file filtering and solution command execution#24697
yekalkan merged 4 commits intorel-10.1from
SolutionFileModifier

Conversation

@maliming
Copy link
Member

@maliming maliming commented Jan 21, 2026

Resolve #24676

image

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes two issues in the ABP CLI: incorrect project file filtering logic and missing working directory parameters for dotnet solution commands.

Changes:

  • Fixed bin/obj directory filtering in DerivedClassFinder to use FullName with proper path comparison instead of DirectoryName
  • Added workingDirectory parameter to dotnet sln commands in RemoveProjectFromSolutionFileAsync method
  • Added performance optimization in IsDerived method to skip parsing files without class declarations

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
SolutionFileModifier.cs Adds working directory parameter to dotnet sln list/remove commands and removes trailing whitespace
DerivedClassFinder.cs Fixes bin/obj folder exclusion logic using FullName and adds early exit optimization for files without classes

@yekalkan yekalkan merged commit ea9a027 into rel-10.1 Jan 22, 2026
3 checks passed
@yekalkan yekalkan deleted the SolutionFileModifier branch January 22, 2026 10:22
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.

3 participants