You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setting the asmdef root namespace doesn't exclude parent directories from namespace providers. So, it just sets a new namespace prefix.
As I remember, it should replace all parent directories. At least that behaviour is described in the source code comment and I believe it used to work this way.
My environment:
Unity 2023.1.19f1
Unity package com.unity.ide.rider 3.0.26
JetBrains Rider 2023.2.2 (#RD-232.9921.83)
The text was updated successfully, but these errors were encountered:
Could you provide an example, please? This should generate a .csproj file that contains a root namespace, and that namespace should be used as the root namespace for all files - any folder under the project location will be suggested as a sub-namespace of this custom root namespace.
The root namespace in the csproj file is the same as in the assembly definition. The problem is that asmdef parent directories work as namespace providers for the project files.
The asmdef has the rootNamespace: "Level". In that case for the SampleType I expect to have the Level.Core namespace, but Rider suggest the Level.Modules.Level.Code.Core.
As a workaround I manually disable the namespace provider property for all parent directories, but I believe it used to work without setting them.
Setting the asmdef root namespace doesn't exclude parent directories from namespace providers. So, it just sets a new namespace prefix.
As I remember, it should replace all parent directories. At least that behaviour is described in the source code comment and I believe it used to work this way.
My environment:
com.unity.ide.rider
3.0.26The text was updated successfully, but these errors were encountered: