A problem I have encountered while converting a project from VB.NET to Mercury is that Mercury does not seem to support project-level Imported namespaces. This feature allows me to identify imported namespaces at the project-level, so I don’t need to do it in each individual file. From what I can tell, this is a VB.NET-only feature and is not supported by C#.
Because my original project took advantage of this feature, when I convert my project to Mercury, my project reports many Unknown type errors. I can obviously fix these my adding an Imports statement to each file, but it would be preferable if there was a way for Mercury to support this without requiring additional changes.
We support that, check the (slightly oddly named for a VB perspective) “DefaultUses” project setting or, if you’re in Fire/Water, the Project|Manage Namespaces sheet.
We even convert <Imports> project tags to DefaultUses, in the .vbproj importer.
That’s good to know. Hmmmm…I wonder why that didn’t happen for this particular project when switching it to Mercury? I think I did it on the latest version, but maybe I’m wrong about that.
Let’s close it. I can’t remember why, but yesterday morning I was doing something else that made me question the order of events for this, and made me think that this was my fault. I was going to provide a follow-up but I forgot - sorry about that.