Move to namespace does not appear in one of my Unity Assemblies
Hello everyone,
As you know when a namespace is typed wrong rider gives a warning and allows you to change the namespace. I am using Unity to develop a game and I am facing an issue where I cannot see the Move to 'Game' namespace action in only one of my assemblies, which is the default assembly named Assembly-CSharp. For the rest of the assemblies it is working fine. I expect a behaviour like the following screenshot when there is something wrong with my namespace (screenshot below is from another assembly).

Instead, I am not getting the warning and seeing it like this in the Assembly-CSharp Assembly.

I even tried to reinstall Rider and the issue still persists.
I am using Rider with the version 2022.3.2, Unity version 2021.2.19 and I am using MacOS as the operating system.
Thanks for your help in advance :)
Please sign in to leave a comment.
Hello Murat,
it looks like Namespace does not correspond to file location code inspection is disabled for this project. If you did not explicitly disable it, could you please confirm if you have Player projects option enabled in Unity preferences | External Tools | Generate .csproj files for. When this is enabled, then the same C# files may be included into several projects that might have different root namespaces. So in order to avoid conflicting code inspection warnings, Namespace does not correspond to file location inspection is automatically disabled.
If this is not your case, then we'll need some more information on your project folder and namespace structure, root namespace, what folders have Namespace provider enabled. A sample solution would be very helpful, if it's possible for you.
Thanks a lot Ivan,
Your solution fixed my problem :)
Thank you for taking the time to give us your feedback. Please feel welcome to reach us out if you have any questions or concerns about our products. We will be happy to assist. Have a great day and take care!