Rename project

I recently renamed a project in Rider 2025.2.3 by right-clicking the project name and selecting Refactor this… > Rename. I entered a new name, and selected all check boxes.

There were some errors in the code present before renaming (the Problems pane showed red exclamation icons).

After renaming, the name of the namespace wasn't changed, so I changed it manually, and I deleted all errors in the code, so that only an empty Main method remained.

For some reason, Rider didn't detect my changes, and the Problems pane still showed the errors, and a message that I ought to change the name of the namespace to the project name.

After a restart of Rider, the issues were gone. Is there a way to manually force a problem scan ("refresh" of the Problems pane)?

0
3 comments

Addition:

Both the Run/Debug Configurations dialog, as well as the Run/Debug Configurations selector in the title bar don't reflect the project name change.

0

Note:
Forgot to add that it's the name of the Run/Debug Configuration that doesn't change, these have a name that's separate from the project name. Would be nice if the project name refactoring changes the name of the Run/Debug Configuration as well…

0

Regrettably, I was not able to reproduce the initial issue is a testing environment. If you can consistently reproduce the rename/analysis issue, please file an issue via Help→Report a Bug and describe the exact steps you took in your environment.

 

There are a few ways to resolve the analysis issue, based on what triggered in in the first place:

  • File → Reload All from Disk should help if Rider had issues interacting with filesystem to update the internal project representation
  • File → Invalidate Caches is a more comprehensive option that will force Rider to drop all caches related to projects and analysis results and force it to reanalyze everything the next time you open the project

Regarding run configurations - this is a known issue RIDER-99160 Renaming project doesn't rename associated run configuration. Please consider voting for the linked issue to demonstrate your interest. Unfortunately, currently you need to manually rename the Run Configuration if you want it to match the new name of your project. 

 

 

 

0

Please sign in to leave a comment.