feat(rename): rename project file and parent directory#25
Closed
CalvinAllen wants to merge 1 commit into
Closed
Conversation
- Add RenameProjectFile method to rename .csproj on disk - Add RenameParentDirectoryIfMatches method to rename folder if it matches project name - Uses full paths via Path and DirectoryInfo classes - Directory rename only occurs if folder name matches old project name (case-insensitive) - Both methods return new path for subsequent operations Closes #20 Closes #21
Contributor
Author
|
Closing - overlaps with merged PR #24. Will create a clean PR for directory rename only. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add functionality to rename the project file and parent directory on disk.
Changes Made
Services/ProjectFileService.csRenameProjectFile()- Renames the .csproj fileRenameParentDirectoryIfMatches()- Renames parent folder if it matches project namePathandDirectoryInfoclassesCommands/RenamifyProjectCommand.csExample
Test Plan
Note
Solution will still be broken after this runs until #22, #23 are implemented.
Closes #20
Closes #21