-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Namespace mapping not working #12
Comments
Another issue that I am finding is that when one schema imports another schema via the |
Thanks for reporting this. The problem wasn't that the The using clause is not necessary since references to classes in other namespaces are always fully qualified. This is automatically done by the CodeDomProvider which generates the code. If you know a way to make it generate usings instead of always fully qualifying type names (without adding ambiguities if names are the same across namespaces), a PR would be very welcome 😄 |
It appears that you always get a generated .net namspace even when you call the program with the -n parameter. I have been able to deduce it to the following code:
I don't believe that InternalDictionary.TryGetValue will ever succeed here because the NamespaceKey object passed through the "key" argument is a different instance from the one already in the collection. I have also found that the NamespaceKey:Source is populated with the full path to the xsd file in the "key" object. However since including the filename with the -n command line parameter appears to be optional, the NamespaceKey:Source properties of the two instances will not match. This will also occur if you do not specify the full path to the filename. I believe what you meant to do here is compare the NameSpaceKey:XmlSchemaNamespace properties for a match.
The text was updated successfully, but these errors were encountered: