ModernRonin / ProjectRenamer

Conveniently rename your csproj files
Other
155 stars 14 forks source link

Rename failed - it also renamed the parent folders. #43

Closed jeffward01 closed 1 year ago

jeffward01 commented 1 year ago

I have a directory structure of this:

When I perform the project rename command:

renamproject MyProject.RemoveThis MyProject

It completes successfully... However the issue is that it also renames the parent directory:

The lib parent directory is changed to the name of the project, which in this case is MyProject

Current:

Expected:

Thanks

ModernRonin commented 1 year ago

this is per design - see the readme:

This tool takes care of this for you, provided your use-case follows a set of fairly common practices: [...] your csproj files have the same name as the folder in which they reside together with accompanying source code

that being said, one could add an option that tells renamer to not expect said convention - I'm open for a PR :-)