-
Notifications
You must be signed in to change notification settings - Fork 215
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
VB -> C#: Duplicate Namespace #201
Comments
Thanks for the report. I think the tests don't have a root namespace set, so it's hard to notice it during development and will need a slightly custom test (or a restoration of the project and solution level tests which could easily set a root namespace). |
@GrahamTheCoder Wondering why you removed the RootNamespace logic. It seems that all VB files that previously had no namespace now get created in C# without a namespace, regardless of the project root namespace. Is this intentional? |
Ah ok yes, thanks for paying attention! In the case where the namespace is missing, we do indeed still need to add it, but we don't need to add on to existing ones. I'll add that bit back. |
I've also tried to tighten up the addition of the root namespace where relevant. Shout if you notice any more issues with it. |
See repro on #318 (closed to consolidate with this) |
Fixed in 2483369 |
Please prefix the issue title with either "C# -> VB: " or "VB -> C#: " if relevant
Input code
Erroneous output
Expected output
Details
Product in use: VS extension
Version in use: 6.1
The project is a class library with a root namespace project property set. At the example above it would be Root.Namespace .
I am not sure why the second root namespace appears.
It is an easy work around on the produced code to replace the duplicates, just reporting in case something more serious is hidden.
The text was updated successfully, but these errors were encountered: