can't see the new added code file in rider's project solution view after git pull.
I am using Rider for an Unreal Engine C++ project.
After closing Rider, I use an external source control system (Git) to pull updates. When I reopen Rider, the newly added code files do not appear in Rider’s file explorer (Project View).
However, when I check the actual directory using the file explorer, I can confirm that the files do exist on disk.
How can I resolve this issue?
Currently, the only workaround I’ve found is to delete the .idea folder from the project directory, regenerate the .sln file from the .uproject file, and then reopen the project in Rider.
best regards.
Please sign in to leave a comment.
Thank you for contacting Rider support. This is by design. The reason for that is that the project structure is described in the .vcxproj file that is being generated though UBT invocation (right-click on .uproject → Generate Visual Studio project files). The .vcxproj file is being generated under the Intermediate folder, and this folder isn't usually a part of the repository. So that project files re-generation is required when a project is changed externally (such as git pull) and new source files are added to a project.
While we can consider an improvement here, currently the available options are:
As of now, I submitted this feature request to our tracker: RIDER-125875 Detect external project changes and suggest regenerating VS project files. Feel free to upvote it to demonstrate your interest.
Have a nice day!