It is not recommended to change the project file path if some paths referenced by the project are relative. Indeed, in such situation most of directories and files referenced by the project are relative to the FilePath. When the file path is changed, the event IProject.IProject.SettingsChanged is triggered with the flag ProjectSettings.ProjectSettings.FilePath activated.
Requirements
Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed