-
Notifications
You must be signed in to change notification settings - Fork 389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate root namespace in settings file with sdk-style project #7102
Comments
this still reproes. The Designer.cs is created in Dotnet ProjectSystem This is the method that generates namespaces in CPS |
|
This is in our codebase, the namespace should be removed (legacy project system does not add additional namespace) Lines 141 to 149 in b6ca713
|
Visual Studio Version: 16.9.3
Summary:
When using an SDK-style project and vb.net, the automated tool generates a duplicate root namespace for settings files.
Steps to Reproduce:
MySettings.settings
).MySettings.Designer.vb
file.Expected Behavior:
MySettings.Designer.vb
should not wrap the code in theRootNamespace
namespace, as that is automatically done by vb.net. This results in a duplicate namespace (i.e.Test.Test.MySettings
).This is what I expect the
MySettings.Designer.vb
file to look like:Actual Behavior:
MySettings.Designer.vb
has duplicated namespace:User Impact:
Having to manually remove the namespace after saving the settings file or compile errors when referring to classes with their fully qualified name.
The correct code results when the
RootNamespace
is removed from the vb.net project but then all other classes fall out of the namespace. I'm pretty sure it doesn't do this when you use the legacy project style as the problem only showed up after switching to the SDK-style project.The text was updated successfully, but these errors were encountered: